Browse Source

Firefox: add basic blocking + some fixes

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

3
platform/firefox/vapi-client.js

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

Loading…
Cancel
Save