1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

isSafari checks

This commit is contained in:
Kyle Spearrin
2018-01-11 15:34:55 -05:00
parent 82e88eb1ba
commit 3743e5b409
2 changed files with 34 additions and 22 deletions

View File

@@ -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);
}
}
}