mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-28 11:00:38 +12:00
Drop js-loader, updates from gorhill/uBlock/master
This commit is contained in:
parent
d150eb6d1c
commit
0bc67a8819
|
@ -74,14 +74,14 @@ if (self.chrome) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!this.listenerId) {
|
||||
this.setup();
|
||||
}
|
||||
|
||||
this.channels[name] = {
|
||||
portName: name,
|
||||
listener: typeof callback === 'function' ? callback : null,
|
||||
send: function(message, callback) {
|
||||
if (!vAPI.messaging.listenerId) {
|
||||
vAPI.messaging.setup();
|
||||
}
|
||||
|
||||
message = {
|
||||
portName: this.portName,
|
||||
msg: message
|
||||
|
@ -137,14 +137,14 @@ if (self.chrome) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!this._connector) {
|
||||
this.setup();
|
||||
}
|
||||
|
||||
this.channels[name] = {
|
||||
portName: name,
|
||||
listener: typeof callback === 'function' ? callback : null,
|
||||
send: function(message, callback) {
|
||||
if (!vAPI.messaging._connector) {
|
||||
vAPI.messaging.setup();
|
||||
}
|
||||
|
||||
message = {
|
||||
portName: this.portName,
|
||||
msg: message
|
||||
|
|
Loading…
Reference in a new issue