mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-09 09:51:02 +01:00
dispatchMessage fix on bar.js
This commit is contained in:
parent
e480fd78b2
commit
419445cf62
@ -129,7 +129,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||||||
|
|
||||||
function sendPlatformMessage(msg) {
|
function sendPlatformMessage(msg) {
|
||||||
if (typeof safari !== 'undefined') {
|
if (typeof safari !== 'undefined') {
|
||||||
safari.self.tab.dispatchMessage('bitwarden', msg);
|
safari.extension.dispatchMessage('bitwarden', msg);
|
||||||
} else {
|
} else {
|
||||||
chrome.runtime.sendMessage(msg);
|
chrome.runtime.sendMessage(msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user