choose what to sync menu. If they aren't equal // and the checkbox is checked, we add the engine to the enabled list; if // the checkbox isn't checked we add the engine to the disabled list. If // the pref and the checkbox value are equal we do nothing as nothing was // changed. if (Services.prefs.getBoolPref(enabledPref, false) !== checkboxValue) { if (checkboxValue === true) { settings.enabledEngines.push(engine); } else if (checkboxValue === false) { settings.disabledEngines.push(engine); } } } return settings; }, }; window.addEventListener("load", () => gSyncChooseWhatToSync.init()); PK