1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

process safari tab on app messages

This commit is contained in:
Kyle Spearrin
2019-08-20 13:06:38 -04:00
parent 630d825ed5
commit 80314e766f
8 changed files with 59 additions and 24 deletions

View File

@@ -9,7 +9,7 @@ document.addEventListener('DOMContentLoaded', () => {
responseCommand: responseCommand
});
safari.self.addEventListener('message', (msgEvent) => {
const msg = msgEvent.message;
const msg = JSON.parse(msgEvent.message.msg);
if (msg.command === responseCommand && msg.data) {
i18n = msg.data.i18n;
load();