1 parent ac34ca1 commit 373f850Copy full SHA for 373f850
1 file changed
src/vector/rageshakesetup.js
@@ -47,11 +47,12 @@ function initRageshake() {
47
initRageshake();
48
49
global.mxSendRageshake = function(text, withLogs) {
50
+ if (withLogs === undefined) withLogs = true;
51
require(['matrix-react-sdk/lib/rageshake/submit-rageshake'], (s) => {
52
s(SdkConfig.get().bug_report_endpoint_url, {
53
userText: text,
54
sendLogs: withLogs,
- progressCallback: console.log,
55
+ progressCallback: console.log.bind(console),
56
}).then(() => {
57
console.log("Bug report sent!");
58
}, (err) => {
0 commit comments