Fix rageshake submission after build changes
We aren't able to depend on `require` in this context anymore. Fixes https://github.com/vector-im/riot-web/issues/11938pull/21833/head
parent
d35788476a
commit
15749621a5
|
@ -23,6 +23,7 @@ import * as sdk from '../../../index';
|
|||
import SdkConfig from '../../../SdkConfig';
|
||||
import Modal from '../../../Modal';
|
||||
import { _t } from '../../../languageHandler';
|
||||
import sendBugReport from '../../../rageshake/submit-rageshake';
|
||||
|
||||
export default class BugReportDialog extends React.Component {
|
||||
constructor(props) {
|
||||
|
@ -67,8 +68,7 @@ export default class BugReportDialog extends React.Component {
|
|||
this.setState({ busy: true, progress: null, err: null });
|
||||
this._sendProgressCallback(_t("Preparing to send logs"));
|
||||
|
||||
require(['../../../rageshake/submit-rageshake'], (s) => {
|
||||
s(SdkConfig.get().bug_report_endpoint_url, {
|
||||
sendBugReport(SdkConfig.get().bug_report_endpoint_url, {
|
||||
userText,
|
||||
sendLogs: true,
|
||||
progressCallback: this._sendProgressCallback,
|
||||
|
@ -93,7 +93,6 @@ export default class BugReportDialog extends React.Component {
|
|||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
_onTextChange(ev) {
|
||||
|
|
Loading…
Reference in New Issue