Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop.

This commit is contained in:
Florian Quèze
2018-02-01 20:45:22 +01:00
parent 7e1a0e2b7f
commit c5f15a4700
614 changed files with 1231 additions and 1232 deletions

View File

@@ -72,7 +72,7 @@ var gXPInstallObserver = {
let showNextConfirmation = () => {
// Make sure the browser is still alive.
if (gBrowser.browsers.indexOf(browser) == -1)
if (!gBrowser.browsers.includes(browser))
return;
let pending = this.pendingInstalls.get(browser);
@@ -223,7 +223,7 @@ var gXPInstallObserver = {
var browser = installInfo.browser;
// Make sure the browser is still alive.
if (!browser || gBrowser.browsers.indexOf(browser) == -1)
if (!browser || !gBrowser.browsers.includes(browser))
return;
const anchorID = "addons-notification-icon";