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

use original safari tab if we can

This commit is contained in:
Kyle Spearrin
2018-01-12 23:20:26 -05:00
parent 6c7646a481
commit 66842b4b72
2 changed files with 14 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ document.addEventListener('DOMContentLoaded', (event) => {
responseCommand: responseCommand
});
safari.self.addEventListener('message', function (msgEvent) {
var msg = msgEvent.message;
const msg = msgEvent.message;
if (msg.command === responseCommand && msg.data === true) {
setInterval(doFillIfNeeded, 500);
}