1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +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

@@ -135,9 +135,15 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe
}
}
}
} else if command == "hideWindow" {
} else if command == "hidePopover" {
dismissPopover()
replyMessage(message: m!)
} else if command == "showPopover" {
// TODO
replyMessage(message: m!)
} else if command == "reloadExtension" {
// TODO
replyMessage(message: m!)
} else if command == "copyToClipboard" {
let pasteboard = NSPasteboard.general
pasteboard.declareTypes([NSPasteboard.PasteboardType.string], owner: nil)