1
0
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:
Kyle Spearrin 2019-08-27 08:03:55 -04:00
parent e480fd78b2
commit 419445cf62

View File

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