commit a229be9aef54736b38ff224b6d7283e5fade3a42 Author: anonym anonym@riseup.net Date: Wed Mar 9 20:18:35 2016 +0100
Improve variable name. --- chrome/content/emailwizard.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/chrome/content/emailwizard.js b/chrome/content/emailwizard.js index d5adc85..fc2d48e 100644 --- a/chrome/content/emailwizard.js +++ b/chrome/content/emailwizard.js @@ -6,7 +6,10 @@ if (!org.torbirdy) org.torbirdy = {}; if(!org.torbirdy.emailwizard) org.torbirdy.emailwizard = new function() { var pub = {};
- var disableWizard = !Preferences.get("extensions.torbirdy.emailwizard", false); + var disableAutoConfiguration = false; + if (Preferences.get("extensions.torbirdy.emailwizard", false)) { + disableAutoConfiguration = true; + }
fixupTorbirdySettingsOnNewAccount = function(account) { var idkey = account.defaultIdentity.key; @@ -37,7 +40,7 @@ if(!org.torbirdy.emailwizard) org.torbirdy.emailwizard = new function() { }
pub.adjustAutoWizard = function() { - if (!disableWizard) { + if (!disableAutoConfiguration) { var realname = document.getElementById("realname").value; var email = document.getElementById("email").value; var password = document.getElementById("password").value; @@ -134,7 +137,7 @@ if(!org.torbirdy.emailwizard) org.torbirdy.emailwizard = new function() { };
pub.onLoad = function() { - if (disableWizard) { + if (disableAutoConfiguration) { document.getElementById("torbirdy-protocol-box").collapsed = true; } document.getElementById("provisioner_button").disabled = true;
tor-commits@lists.torproject.org