From ba47f39c47cf35ade590a65ded54f3013b2acdc2 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Tue, 16 Dec 2014 22:31:03 +0100 Subject: [PATCH] Firefox: implement vAPI.tabs.injectScript --- platform/chromium/vapi-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/chromium/vapi-client.js b/platform/chromium/vapi-client.js index c35de73..67f6ddf 100644 --- a/platform/chromium/vapi-client.js +++ b/platform/chromium/vapi-client.js @@ -55,7 +55,7 @@ var messagingConnector = function(response) { var channels = vAPI.messaging.channels; var channel, listener; - if ( response.broadcast === true ) { + if ( response.broadcast === true && !response.portName ) { for ( channel in channels ) { if ( channels.hasOwnProperty(channel) === false ) { continue;