1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 16:25:03 +12:00

Firefox: partial vAPI.tabs implementation

This commit is contained in:
Deathamns 2014-12-02 08:35:25 +01:00 committed by gorhill
parent 8f0cf1d340
commit dd6f3cc4b3

View file

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