[tor-commits] [torbirdy/develop] Update fetching preference value for default protocol

sukhbir at torproject.org sukhbir at torproject.org
Fri Nov 25 05:54:48 UTC 2016


commit 602b5d8f7d342ec86f3494791e65ecc5bfd097a6
Author: Sukhbir Singh <sukhbir at torproject.org>
Date:   Wed May 4 13:35:53 2016 -0400

    Update fetching preference value for default protocol
---
 chrome/content/emailwizard.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/emailwizard.js b/chrome/content/emailwizard.js
index 8218c1b..0223e7a 100644
--- a/chrome/content/emailwizard.js
+++ b/chrome/content/emailwizard.js
@@ -140,7 +140,7 @@ if(!org.torbirdy.emailwizard) org.torbirdy.emailwizard = new function() {
     document.getElementById("provisioner_button").hidden = true;
 
     // 0 is for POP3 (default), 1 is for IMAP. See emailwizard.xul and prefs.js.
-    var selectProtocol = prefs.getIntPref("extensions.torbirdy.defaultprotocol")
+    var selectProtocol = Preferences.get("extensions.torbirdy.defaultprotocol")
     document.getElementById("torbirdy-protocol").selectedIndex = selectProtocol;
   };
 





More information about the tor-commits mailing list