mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
adjust comments
This commit is contained in:
parent
1326d82fde
commit
8ac5bb55ce
@ -207,9 +207,9 @@ export class BrowserApi {
|
|||||||
|
|
||||||
static closePopup(win: Window) {
|
static closePopup(win: Window) {
|
||||||
if (BrowserApi.isWebExtensionsApi && BrowserApi.isFirefoxOnAndroid) {
|
if (BrowserApi.isWebExtensionsApi && BrowserApi.isFirefoxOnAndroid) {
|
||||||
// COMPAT: Reactivating the active tab dismisses the popout-tab. The promise final
|
// Reactivating the active tab dismisses the popup tab. The promise final
|
||||||
// condition is only called if the popout wasn't already dismissed (future proofing).
|
// condition is only called if the popup wasn't already dismissed (future proofing).
|
||||||
// BUGZILLA: https://bugzilla.mozilla.org/show_bug.cgi?id=1433604
|
// ref: 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user