mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +03:00
Merge pull request #11926 from vector-im/travis/fix-rageshake
Fix rageshake post-sourcemaps
This commit is contained in:
commit
342d717ff6
1 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Copyright 2018 New Vector Ltd
|
Copyright 2018 New Vector Ltd
|
||||||
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
|
@ -27,6 +28,7 @@ limitations under the License.
|
||||||
|
|
||||||
import * as rageshake from "matrix-react-sdk/src/rageshake/rageshake";
|
import * as rageshake from "matrix-react-sdk/src/rageshake/rageshake";
|
||||||
import SdkConfig from "matrix-react-sdk/src/SdkConfig";
|
import SdkConfig from "matrix-react-sdk/src/SdkConfig";
|
||||||
|
import sendBugReport from "matrix-react-sdk/src/rageshake/submit-rageshake";
|
||||||
|
|
||||||
function initRageshake() {
|
function initRageshake() {
|
||||||
rageshake.init().then(() => {
|
rageshake.init().then(() => {
|
||||||
|
@ -54,8 +56,7 @@ global.mxSendRageshake = function(text, withLogs) {
|
||||||
console.error("Cannot send a rageshake without a message - please tell us what went wrong");
|
console.error("Cannot send a rageshake without a message - please tell us what went wrong");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
require(['matrix-react-sdk/src/rageshake/submit-rageshake'], (s) => {
|
sendBugReport(SdkConfig.get().bug_report_endpoint_url, {
|
||||||
s(SdkConfig.get().bug_report_endpoint_url, {
|
|
||||||
userText: text,
|
userText: text,
|
||||||
sendLogs: withLogs,
|
sendLogs: withLogs,
|
||||||
progressCallback: console.log.bind(console),
|
progressCallback: console.log.bind(console),
|
||||||
|
@ -64,5 +65,4 @@ global.mxSendRageshake = function(text, withLogs) {
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue