1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-02 04:48:57 +02:00

fix BrowserApi reference

This commit is contained in:
Kyle Spearrin 2018-08-14 21:31:14 -04:00
parent 418951021f
commit 1326d82fde

View File

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