Browse Source

Fix messaging for Safari

pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
a39572448d
  1. 3
      src/js/vapi-client.js

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

Loading…
Cancel
Save