From 76752f81c62f42f626a5d4849814fc673d8ced60 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 12 Jan 2018 21:31:46 -0500 Subject: [PATCH] lock view open check for safari --- src/services/browserPlatformUtils.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index 83c1a4a82a..26a2626484 100644 --- a/src/services/browserPlatformUtils.service.ts +++ b/src/services/browserPlatformUtils.service.ts @@ -1,5 +1,7 @@ import * as tldjs from 'tldjs'; +import { BrowserApi } from '../browser/browserApi'; + import { DeviceType } from 'jslib/enums'; import { PlatformUtilsService } from 'jslib/abstractions'; @@ -119,14 +121,12 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService } isViewOpen(): boolean { - if (this.isSafari()) { - // TODO + if (BrowserApi.isPopupOpen()) { return true; } - const popupOpen = chrome.extension.getViews({ type: 'popup' }).length > 0; - if (popupOpen) { - return true; + if (this.isSafari()) { + return false; } const sidebarView = this.sidebarViewName();