[Pkg-privacy-commits] [torbirdy] 11/53: Switch to Preferences.jsm.
Ulrike Uhlig
u-guest at moszumanska.debian.org
Sat Jul 2 20:08:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to annotated tag 0.2.0
in repository torbirdy.
commit c87a2a2b11dc62b4b9a11fe27b2dbc3fd8d163f5
Author: anonym <anonym at 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;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbirdy.git
More information about the Pkg-privacy-commits
mailing list