Get instant apply status correctly

This commit is contained in:
YUKI Hiroshi 2016-09-07 15:41:23 +09:00
parent 2186ecbaf0
commit 9c26c3c9d2

View File

@ -140,7 +140,9 @@ if (typeof window == 'undefined' ||
}
var instantApply = false;
try {
instantApply = this._Prefs.getBoolPref('browser.preferences.instantApply');
instantApply = Cc['@mozilla.org/preferences;1']
.getService(Ci.nsIPrefBranch)
.getBoolPref('browser.preferences.instantApply');
}
catch(e) {
}