aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/main.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/main.js b/lib/main.js
index 67ad375..77a4dd9 100644
--- a/lib/main.js
+++ b/lib/main.js
@@ -1042,10 +1042,8 @@ function autoCompleteUser(doc, field, multiple) {
if (!doc.getElementById(helperID)) {
function getAuthParams() {
const BZTW_AC_DISABLE = "jetpack.bugzillaTweaks.userAutoCompleteDisabled";
- var prefs = Components.classes["@mozilla.org/preferences-service;1"].
- getService(Components.interfaces.nsIPrefBranch);
- if (prefs.prefHasUserValue(BZTW_AC_DISABLE) &&
- prefs.getBoolPref(BZTW_AC_DISABLE))
+ var prefs = require("preferences-service");
+ if (prefs.get(BZTW_AC_DISABLE, false))
return null;
var cm = Components.classes["@mozilla.org/cookiemanager;1"].