1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 18:23:31 +00:00

cleanup safari specific features

This commit is contained in:
Kyle Spearrin
2019-08-19 15:57:34 -04:00
parent c041fd7504
commit 2a7e361300
7 changed files with 17 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ export default class CommandsBackground {
}
private async generatePasswordToClipboard() {
if (this.isSafari || this.isEdge) {
if (this.isEdge) {
// Safari does not support access to clipboard from background
return;
}

View File

@@ -368,6 +368,10 @@ export default class MainBackground {
// Chrome APIs cannot open popup
// TODO: Do we need to open this popup?
if (!this.isSafari) {
return;
}
await SafariApp.sendMessageToApp('showPopover');
/*
if (!this.isSafari || !safari.extension.toolbarItems || !safari.extension.toolbarItems.length) {