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
parent 88b2ab12db
commit 97a4b8e1e1
+1 -1
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;
}
}