From a39572448dddeb2afcb6b45f622a7e1e08ad2446 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Fri, 7 Nov 2014 12:59:01 +0100 Subject: [PATCH] Fix messaging for Safari --- src/js/vapi-client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/vapi-client.js b/src/js/vapi-client.js index 26c0b08..e441292 100644 --- a/src/js/vapi-client.js +++ b/src/js/vapi-client.js @@ -121,7 +121,8 @@ if (self.chrome) { // messages from the background script are sent to every frame, // so we need to check the connectorId to accept only // what is meant for the current context - if (msg.name === vAPI.messaging.connectorId) { + if (msg.name === vAPI.messaging.connectorId + || msg.name === 'broadcast') { vAPI.messaging.connector(msg.message); } };