diff --git a/src/vector/rageshakesetup.js b/src/vector/rageshakesetup.js index 64e6bce0..2ea438ef 100644 --- a/src/vector/rageshakesetup.js +++ b/src/vector/rageshakesetup.js @@ -47,11 +47,12 @@ function initRageshake() { initRageshake(); global.mxSendRageshake = function(text, withLogs) { + if (withLogs === undefined) withLogs = true; require(['matrix-react-sdk/lib/rageshake/submit-rageshake'], (s) => { s(SdkConfig.get().bug_report_endpoint_url, { userText: text, sendLogs: withLogs, - progressCallback: console.log, + progressCallback: console.log.bind(console), }).then(() => { console.log("Bug report sent!"); }, (err) => {