Trivial update: use .includes() in ForGetAboutSite.jsm

This commit is contained in:
wolfbeast 2018-02-03 15:02:47 +01:00 committed by Roy Tam
commit 97a4b8e1e1

View file

@ -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;
}
}