From 91c3b57c9717721914390fa796416584cb5b9c55 Mon Sep 17 00:00:00 2001 From: Sukhbir Singh Date: Sun, 6 May 2018 18:48:06 -0400 Subject: 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. --- chrome/content/accountWizard/createInBackend.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'chrome/content/accountWizard/createInBackend.js') 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; + } } } -- cgit v1.2.3