Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop.
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user