Bug 1546101 - Fixing argument paramater passed to about-telemetry-settings-explanation to fix release vs pre-release info in about:telemetry r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D28730

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Christian Frey 2019-04-24 22:38:10 +00:00
Родитель b3b1ca15aa
Коммит 009e2982bf
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -208,10 +208,10 @@ var Settings = {
let settingsExplanation = document.getElementById("settings-explanation");
let extendedEnabled = Services.telemetry.canRecordExtended;
let datacase = extendedEnabled ? "prerelease" : "release";
let channel = extendedEnabled ? "prerelease" : "release";
let uploadcase = TelemetrySend.sendingEnabled() ? "enabled" : "disabled";
document.l10n.setAttributes(settingsExplanation, "about-telemetry-settings-explanation", {datacase, uploadcase});
document.l10n.setAttributes(settingsExplanation, "about-telemetry-settings-explanation", {channel, uploadcase});
this.attachObservers();
},