Browse Source

Firefox: partial vAPI.tabs implementation

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

3
platform/firefox/vapi-client.js

@ -84,6 +84,7 @@ vAPI.messaging = {
listeners: {}, listeners: {},
requestId: 1, requestId: 1,
connectorId: uniqueId(), connectorId: uniqueId(),
bgMessageName: 'µBlock:background',
setup: function() { setup: function() {
this.connector = function(msg) { this.connector = function(msg) {
@ -124,7 +125,7 @@ vAPI.messaging = {
vAPI.messaging.listeners[message.requestId] = callback; vAPI.messaging.listeners[message.requestId] = callback;
} }
sendAsyncMessage('µBlock:background', message);
sendAsyncMessage(vAPI.messaging.bgMessageName, message);
}, },
close: function() { close: function() {
delete vAPI.messaging.channels[this.portName]; delete vAPI.messaging.channels[this.portName];

Loading…
Cancel
Save