mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Send enabled_labs over rageshake as comma delimited list
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
65954b1e1b
commit
814c0aa4c2
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,7 @@ import rageshake from './rageshake';
|
||||||
|
|
||||||
// polyfill textencoder if necessary
|
// polyfill textencoder if necessary
|
||||||
import * as TextEncodingUtf8 from 'text-encoding-utf-8';
|
import * as TextEncodingUtf8 from 'text-encoding-utf-8';
|
||||||
|
import SettingsStore from "../settings/SettingsStore";
|
||||||
let TextEncoder = window.TextEncoder;
|
let TextEncoder = window.TextEncoder;
|
||||||
if (!TextEncoder) {
|
if (!TextEncoder) {
|
||||||
TextEncoder = TextEncodingUtf8.TextEncoder;
|
TextEncoder = TextEncodingUtf8.TextEncoder;
|
||||||
|
@ -85,6 +86,12 @@ export default async function sendBugReport(bugReportEndpoint, opts) {
|
||||||
body.append('label', opts.label);
|
body.append('label', opts.label);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add labs options
|
||||||
|
const enabledLabs = SettingsStore.getLabsFeatures().filter(SettingsStore.isFeatureEnabled);
|
||||||
|
if (enabledLabs.length) {
|
||||||
|
body.append('enabled_labs', enabledLabs.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