From 14950c0c5f98ce570a642c423d9aff2e1efdda19 Mon Sep 17 00:00:00 2001 From: Deathamns Date: Sun, 28 Dec 2014 21:26:06 +0100 Subject: [PATCH] Code styling --- platform/chromium/vapi-background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index d8d39e1..37daf89 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -295,7 +295,7 @@ vAPI.messaging.onPortMessage = function(request, port) { } port.postMessage({ requestId: request.requestId, - portName: request.portName, + channelName: request.channelName, msg: response !== undefined ? response : null }); }; @@ -303,7 +303,7 @@ vAPI.messaging.onPortMessage = function(request, port) { // Specific handler var r = vAPI.messaging.UNHANDLED; - var listener = vAPI.messaging.listeners[request.portName]; + var listener = vAPI.messaging.listeners[request.channelName]; if ( typeof listener === 'function' ) { r = listener(request.msg, port.sender, callback); } @@ -383,7 +383,7 @@ vAPI.net = { 'onHeadersReceived' ]; - for (var i = 0; i < listeners.length; ++i) { + for ( var i = 0; i < listeners.length; i++ ) { chrome.webRequest[listeners[i]].addListener( this[listeners[i]].callback, {