mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00:00
Trivial update: use .includes() in ForGetAboutSite.jsm
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user