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:
Michael Telatynski 2020-04-09 22:55:28 +01:00
parent 4d461c6d87
commit 0153f39c10
2 changed files with 15 additions and 0 deletions

View file

@ -136,6 +136,13 @@ export default async function sendBugReport(bugReportEndpoint, opts) {
} 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) {
progressCallback(_t("Collecting logs"));
const logs = await rageshake.getLogsForReport();