From 8436f11e5a0c7b6d064cba8c0742ccff51aa87d7 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 16 Nov 2014 14:39:38 -0200 Subject: [PATCH] code review --- meta/crx/vapi-background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/crx/vapi-background.js b/meta/crx/vapi-background.js index 6cd19b2..331e2bf 100644 --- a/meta/crx/vapi-background.js +++ b/meta/crx/vapi-background.js @@ -287,7 +287,7 @@ vAPI.messaging.setup = function(defaultHandler) { } if ( typeof defaultHandler !== 'function' ) { - defaultHandler = function(){ return null; }; + defaultHandler = function(){ return vAPI.messaging.UNHANDLED; }; } this.defaultHandler = defaultHandler;