mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
isSafari checks
This commit is contained in:
@@ -8,8 +8,11 @@ export default class BrowserMessagingService implements MessagingService {
|
||||
}
|
||||
|
||||
send(subscriber: string, arg: any = {}) {
|
||||
// if safari, else
|
||||
const message = Object.assign({}, { command: subscriber }, arg);
|
||||
chrome.runtime.sendMessage(message);
|
||||
if (this.platformUtilsService.isSafari()) {
|
||||
// send message
|
||||
} else {
|
||||
const message = Object.assign({}, { command: subscriber }, arg);
|
||||
chrome.runtime.sendMessage(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user