fune/browser/base/content/test/general/offlineByDefault.js
Mark Banner f99ae4c2a9 Bug 1421376 - Change various instances of manually calling getService to use Services.jsm in browser/. r=mossop
MozReview-Commit-ID: FW3X2fkOwK2

--HG--
extra : rebase_source : f71e053e18017d675d4ea4d758e2552adcf5adc6
2017-11-28 19:21:33 +00:00

12 lines
407 B
JavaScript

var offlineByDefault = {
defaultValue: false,
set(allow) {
this.defaultValue = SpecialPowers.Services.prefs.getBoolPref("offline-apps.allow_by_default", false);
SpecialPowers.Services.prefs.setBoolPref("offline-apps.allow_by_default", allow);
},
reset() {
SpecialPowers.Services.prefs.setBoolPref("offline-apps.allow_by_default", this.defaultValue);
}
};
offlineByDefault.set(false);