Rageshake, remind user of unsupported browser and report missing features in report
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
4d461c6d87
commit
0153f39c10
2 changed files with 15 additions and 0 deletions
|
@ -137,12 +137,20 @@ export default class BugReportDialog extends React.Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let warning;
|
||||||
|
if (window.Modernizr && Object.values(window.Modernizr).some(support => support === false)) {
|
||||||
|
warning = <p><b>
|
||||||
|
{ _t("Your browser is unsupported, you accepted that things may not work.") }
|
||||||
|
</b></p>;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseDialog className="mx_BugReportDialog" onFinished={this._onCancel}
|
<BaseDialog className="mx_BugReportDialog" onFinished={this._onCancel}
|
||||||
title={_t('Submit debug logs')}
|
title={_t('Submit debug logs')}
|
||||||
contentId='mx_Dialog_content'
|
contentId='mx_Dialog_content'
|
||||||
>
|
>
|
||||||
<div className="mx_Dialog_content" id='mx_Dialog_content'>
|
<div className="mx_Dialog_content" id='mx_Dialog_content'>
|
||||||
|
{ warning }
|
||||||
<p>
|
<p>
|
||||||
{ _t(
|
{ _t(
|
||||||
"Debug logs contain application usage data including your " +
|
"Debug logs contain application usage data including your " +
|
||||||
|
|
|
@ -136,6 +136,13 @@ export default async function sendBugReport(bugReportEndpoint, opts) {
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.Modernizr) {
|
||||||
|
const missingFeatures = Object.keys(window.Modernizr).filter(key => window.Modernizr[key] === false);
|
||||||
|
if (missingFeatures.length > 0) {
|
||||||
|
body.append("modernizr_missing_features", missingFeatures.join(", "));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (opts.sendLogs) {
|
if (opts.sendLogs) {
|
||||||
progressCallback(_t("Collecting logs"));
|
progressCallback(_t("Collecting logs"));
|
||||||
const logs = await rageshake.getLogsForReport();
|
const logs = await rageshake.getLogsForReport();
|
||||||
|
|
Loading…
Reference in a new issue