mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-28 11:00:38 +12:00
give specific message handlers priority over default one
This commit is contained in:
parent
c3178cd442
commit
bd5492654f
|
@ -695,7 +695,7 @@ if (self.chrome) {
|
|||
|
||||
var listener = connector(request.message.msg, sender, callback);
|
||||
|
||||
if (listener === null) {
|
||||
if (listener === vAPI.messaging.UNHANDLED) {
|
||||
listener = vAPI.messaging.listeners[request.message.portName];
|
||||
|
||||
if (typeof listener === 'function') {
|
||||
|
|
Loading…
Reference in a new issue