mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
wire up internal messaging for safari app
This commit is contained in:
@@ -23,7 +23,7 @@ export default class CommandsBackground {
|
||||
|
||||
async init() {
|
||||
if (this.isSafari || this.isEdge || this.isVivaldi) {
|
||||
BrowserApi.messageListener(async (msg: any, sender: any, sendResponse: any) => {
|
||||
BrowserApi.messageListener('commands.background', async (msg: any, sender: any, sendResponse: any) => {
|
||||
if (msg.command === 'keyboardShortcutTriggered' && msg.shortcut) {
|
||||
await this.processCommand(msg.shortcut, sender);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user