Files
tubestation/toolkit/mozapps/extensions/content/update.js
Andrew Swan 24ee59fdc9 Bug 1353194 Streamline the startup extension compatibility check r=kmag
Also extend activeAddons records with a started flag to avoid
double-starting extensions that are upgraded during the startup check.

MozReview-Commit-ID: FPX71Q3lSrw
2017-09-10 12:23:45 -07:00

25 lines
1.0 KiB
JavaScript

"use strict";
Components.utils.import("resource://gre/modules/Services.jsm");
let BRAND_PROPS = "chrome://branding/locale/brand.properties";
let UPDATE_PROPS = "chrome://mozapps/locale/extensions/update.properties";
let appName = Services.strings.createBundle(BRAND_PROPS)
.GetStringFromName("brandShortName");
let bundle = Services.strings.createBundle(UPDATE_PROPS);
let titleText = bundle.formatStringFromName("addonUpdateTitle", [appName], 1);
let messageText = bundle.formatStringFromName("addonUpdateMessage", [appName], 1);
let cancelText = bundle.GetStringFromName("addonUpdateCancelMessage");
let cancelButtonText = bundle.formatStringFromName("addonUpdateCancelButton", [appName], 1);
document.title = titleText;
window.addEventListener("load", e => {
document.getElementById("message").textContent = messageText;
document.getElementById("cancel-message").textContent = cancelText;
document.getElementById("cancel-btn").textContent = cancelButtonText;
window.sizeToContent();
});