mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
lock view open check for safari
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import * as tldjs from 'tldjs';
|
import * as tldjs from 'tldjs';
|
||||||
|
|
||||||
|
import { BrowserApi } from '../browser/browserApi';
|
||||||
|
|
||||||
import { DeviceType } from 'jslib/enums';
|
import { DeviceType } from 'jslib/enums';
|
||||||
|
|
||||||
import { PlatformUtilsService } from 'jslib/abstractions';
|
import { PlatformUtilsService } from 'jslib/abstractions';
|
||||||
@@ -119,14 +121,12 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
|||||||
}
|
}
|
||||||
|
|
||||||
isViewOpen(): boolean {
|
isViewOpen(): boolean {
|
||||||
if (this.isSafari()) {
|
if (BrowserApi.isPopupOpen()) {
|
||||||
// TODO
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const popupOpen = chrome.extension.getViews({ type: 'popup' }).length > 0;
|
if (this.isSafari()) {
|
||||||
if (popupOpen) {
|
return false;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const sidebarView = this.sidebarViewName();
|
const sidebarView = this.sidebarViewName();
|
||||||
|
|||||||
Reference in New Issue
Block a user