1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

process messages in background runtime

This commit is contained in:
Kyle Spearrin
2018-01-12 15:20:19 -05:00
parent bc59281bf0
commit 497984e353
3 changed files with 91 additions and 78 deletions

View File

@@ -995,7 +995,7 @@
*/
if ((typeof safari !== 'undefined')) {
safari.self.addEventListener('bitwarden', function (msgEvent) {
safari.self.addEventListener('message', function (msgEvent) {
var msg = msgEvent.message;
if (msg.command === 'collectPageDetails') {
var pageDetails = collect(document);