give specific message handlers priority over default one

pull/2/head
Raymond Hill 10 years ago committed by gorhill
parent c3178cd442
commit bd5492654f

@ -695,7 +695,7 @@ if (self.chrome) {
var listener = connector(request.message.msg, sender, callback); var listener = connector(request.message.msg, sender, callback);
if (listener === null) { if (listener === vAPI.messaging.UNHANDLED) {
listener = vAPI.messaging.listeners[request.message.portName]; listener = vAPI.messaging.listeners[request.message.portName];
if (typeof listener === 'function') { if (typeof listener === 'function') {

Loading…
Cancel
Save