diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-03 15:02:47 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-03 15:02:47 +0100 |
commit | 559933a9a58f96ac62ad0f60602f45344581604f (patch) | |
tree | 939badaf9cbaa5d195d398cbeb08258b962eea5f /toolkit/forgetaboutsite | |
parent | 1e1fb5ea2504e548bc17521bdb273c9e59b9cf01 (diff) | |
download | UXP-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/forgetaboutsite')
-rw-r--r-- | toolkit/forgetaboutsite/ForgetAboutSite.jsm | 2 |
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; } } |