Browse Source

give specific message handlers priority over default one

pull/2/head
Raymond Hill 10 years ago
committed by gorhill
parent
commit
bd5492654f
  1. 2
      src/js/vapi-background.js

2
src/js/vapi-background.js

@ -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