mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-07-02 21:10:50 +12:00
Fix messaging for Safari
This commit is contained in:
parent
08247fb5dd
commit
a39572448d
|
@ -121,7 +121,8 @@ if (self.chrome) {
|
||||||
// messages from the background script are sent to every frame,
|
// messages from the background script are sent to every frame,
|
||||||
// so we need to check the connectorId to accept only
|
// so we need to check the connectorId to accept only
|
||||||
// what is meant for the current context
|
// what is meant for the current context
|
||||||
if (msg.name === vAPI.messaging.connectorId) {
|
if (msg.name === vAPI.messaging.connectorId
|
||||||
|
|| msg.name === 'broadcast') {
|
||||||
vAPI.messaging.connector(msg.message);
|
vAPI.messaging.connector(msg.message);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue