fix BrowserApi reference

This commit is contained in:
Kyle Spearrin 2018-08-14 21:31:14 -04:00
parent 418951021f
commit 1326d82fde
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ export class BrowserApi {
// condition is only called if the popout wasn't already dismissed (future proofing). // condition is only called if the popout wasn't already dismissed (future proofing).
// BUGZILLA: https://bugzilla.mozilla.org/show_bug.cgi?id=1433604 // BUGZILLA: https://bugzilla.mozilla.org/show_bug.cgi?id=1433604
browser.tabs.update({ active: true }).finally(win.close); browser.tabs.update({ active: true }).finally(win.close);
}  else if (browserApi.isWebExtensionsApi || BrowserApi.isChromeApi) { }  else if (BrowserApi.isWebExtensionsApi || BrowserApi.isChromeApi) {
win.close(); win.close();
} else if (BrowserApi.isSafariApi && safari.extension.popovers && safari.extension.popovers.length > 0) { } else if (BrowserApi.isSafariApi && safari.extension.popovers && safari.extension.popovers.length > 0) {
safari.extension.popovers[0].hide(); safari.extension.popovers[0].hide();