commit c87a2a2b11dc62b4b9a11fe27b2dbc3fd8d163f5 Author: anonym anonym@riseup.net Date: Wed Mar 9 20:07:17 2016 +0100
Switch to Preferences.jsm.
It's cleaner and simpler due to the type inference which we already use, so let's stick with one approach. Also the explicit default values make stuff clearer. --- chrome/content/emailwizard.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/chrome/content/emailwizard.js b/chrome/content/emailwizard.js index ec73113..3352fb9 100644 --- a/chrome/content/emailwizard.js +++ b/chrome/content/emailwizard.js @@ -6,11 +6,8 @@ if (!org.torbirdy) org.torbirdy = {}; if(!org.torbirdy.emailwizard) org.torbirdy.emailwizard = new function() { var pub = {};
- var prefs = Cc["@mozilla.org/preferences-service;1"] - .getService(Ci.nsIPrefBranch); - var disableWizard = false; - if (prefs.getBoolPref("extensions.torbirdy.emailwizard")) { + if (Preferences.get("extensions.torbirdy.emailwizard", false)) { disableWizard = true; }
tor-commits@lists.torproject.org