summaryrefslogtreecommitdiff
path: root/toolkit/forgetaboutsite
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-03 15:02:47 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-03 15:02:47 +0100
commit559933a9a58f96ac62ad0f60602f45344581604f (patch)
tree939badaf9cbaa5d195d398cbeb08258b962eea5f /toolkit/forgetaboutsite
parent1e1fb5ea2504e548bc17521bdb273c9e59b9cf01 (diff)
downloaduxp-559933a9a58f96ac62ad0f60602f45344581604f.tar.gz
Trivial update: use .includes() in ForGetAboutSite.jsm
Diffstat (limited to 'toolkit/forgetaboutsite')
-rw-r--r--toolkit/forgetaboutsite/ForgetAboutSite.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/forgetaboutsite/ForgetAboutSite.jsm b/toolkit/forgetaboutsite/ForgetAboutSite.jsm
index b8cd31ad9c..5250ca75d4 100644
--- a/toolkit/forgetaboutsite/ForgetAboutSite.jsm
+++ b/toolkit/forgetaboutsite/ForgetAboutSite.jsm
@@ -126,7 +126,7 @@ this.ForgetAboutSite = {
// XXXehsan: is there a better way to do this rather than this
// hacky comparison?
catch (ex) {
- if (ex.message.indexOf("User canceled Master Password entry") == -1) {
+ if (!ex.message.includes("User canceled Master Password entry")) {
throw ex;
}
}