Mass-replace global-scope let with var in Pale Moon and TychoAM

tag #155
This commit is contained in:
wolfbeast 2018-04-16 14:47:03 +02:00 • committed by Roy Tam
commit d5b0bc88af
62 changed files with 120 additions and 119 deletions

View file

@ -234,8 +234,8 @@ const SEARCH_ENGINES = {
};
// This global tracks if the page has been set up before, to prevent double inits
let gInitialized = false;
let gObserver = new MutationObserver(function (mutations) {
var gInitialized = false;
var gObserver = new MutationObserver(function (mutations) {
for (let mutation of mutations) {
if (mutation.attributeName == "searchEngineURL") {
setupSearchEngine();