1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 01:33:33 +00:00

remove ols safari api dependencies

This commit is contained in:
Kyle Spearrin
2019-08-13 15:47:03 -04:00
parent d585c21c38
commit 80d0bd68f1
4 changed files with 14 additions and 10 deletions

View File

@@ -8,7 +8,7 @@ export default class TabsBackground {
constructor(private main: MainBackground, private platformUtilsService: PlatformUtilsService) {
this.isSafari = this.platformUtilsService.isSafari();
this.tabs = this.isSafari ? safari.application : chrome.tabs;
this.tabs = this.isSafari ? null : chrome.tabs;
}
async init() {
@@ -17,6 +17,7 @@ export default class TabsBackground {
}
if (this.isSafari) {
/*
this.tabs.addEventListener('activate', async (ev: any) => {
await this.main.refreshBadgeAndMenu();
}, true);
@@ -25,6 +26,7 @@ export default class TabsBackground {
await this.main.checkNotificationQueue();
await this.main.refreshBadgeAndMenu();
}, true);
*/
return;
}