summaryrefslogtreecommitdiffstats
path: root/toolkit
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
parent1e1fb5ea2504e548bc17521bdb273c9e59b9cf01 (diff)
downloadUXP-559933a9a58f96ac62ad0f60602f45344581604f.tar
UXP-559933a9a58f96ac62ad0f60602f45344581604f.tar.gz
UXP-559933a9a58f96ac62ad0f60602f45344581604f.tar.lz
UXP-559933a9a58f96ac62ad0f60602f45344581604f.tar.xz
UXP-559933a9a58f96ac62ad0f60602f45344581604f.zip
Trivial update: use .includes() in ForGetAboutSite.jsm
Diffstat (limited to 'toolkit')
-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 b8cd31ad9..5250ca75d 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;
}
}