summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chrome/content/accountWizard/createInBackend.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/content/accountWizard/createInBackend.js b/chrome/content/accountWizard/createInBackend.js
index f15b882..46dbbae 100644
--- a/chrome/content/accountWizard/createInBackend.js
+++ b/chrome/content/accountWizard/createInBackend.js
@@ -236,7 +236,7 @@ function rememberPassword(server, password)
login.init(passwordURI, null, passwordURI, server.username, password, "", "");
try {
Services.logins.addLogin(login);
- } catch (e if e.message.contains("This login already exists")) {
+ } catch (e if e.message.includes("This login already exists")) {
// TODO modify
}
}
@@ -263,7 +263,7 @@ function checkIncomingServerAlreadyExists(config)
// if username does not have an '@', also check the e-mail
// address form of the name.
- if (!existing && !incoming.username.contains("@"))
+ if (!existing && !incoming.username.includes("@"))
existing = MailServices.accounts.findRealServer(config.identity.emailAddress,
incoming.hostname,
sanitize.enum(incoming.type, ["pop3", "imap", "nntp"]),