1
0
Fork 0
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:
Raymond Hill 2014-11-16 11:09:28 -02:00 committed by gorhill
parent c3178cd442
commit bd5492654f

View file

@ -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') {