summaryrefslogtreecommitdiff
path: root/chrome/content/accountWizard/createInBackend.js
diff options
context:
space:
mode:
authorSukhbir Singh <sukhbir@torproject.org>2018-05-06 18:48:06 -0400
committerSukhbir Singh <sukhbir@torproject.org>2018-05-06 18:48:06 -0400
commit91c3b57c9717721914390fa796416584cb5b9c55 (patch)
tree1b86d7d43813e3e0a4fafa2ae2c9fba883d12523 /chrome/content/accountWizard/createInBackend.js
parentb154fe2aa6fab711f8e5fe6ff16756b41d2920d7 (diff)
Add support for Thunderbird 60
See https://wiki.mozilla.org/Thunderbird/Add-ons_Guide_57 for changes relevant to Thunderbird 60. This commit also bumps up the minimum supported version to Thunderbird 52.
Diffstat (limited to 'chrome/content/accountWizard/createInBackend.js')
-rw-r--r--chrome/content/accountWizard/createInBackend.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/content/accountWizard/createInBackend.js b/chrome/content/accountWizard/createInBackend.js
index 46dbbae..ed2424b 100644
--- a/chrome/content/accountWizard/createInBackend.js
+++ b/chrome/content/accountWizard/createInBackend.js
@@ -218,7 +218,7 @@ function doNotCache(inServer)
inServerQI.offlineDownload = false;
// and remove offline flag from all folders
var allFolders = inServer.rootFolder.descendants;
- for (let folder in fixIterator(allFolders, Components.interfaces.nsIMsgFolder))
+ for (let folder of fixIterator(allFolders, Components.interfaces.nsIMsgFolder))
folder.clearFlag(Components.interfaces.nsMsgFolderFlags.Offline);
}
@@ -236,8 +236,12 @@ function rememberPassword(server, password)
login.init(passwordURI, null, passwordURI, server.username, password, "", "");
try {
Services.logins.addLogin(login);
- } catch (e if e.message.includes("This login already exists")) {
- // TODO modify
+ } catch (e) {
+ if (e.message.includes("This login already exists")) {
+ // TODO modify
+ } else {
+ throw e;
+ }
}
}