diff --git a/platform/chromium/vapi-background.js b/platform/chromium/vapi-background.js index 3a63109b6..a9933478d 100644 --- a/platform/chromium/vapi-background.js +++ b/platform/chromium/vapi-background.js @@ -477,6 +477,12 @@ vAPI.net.registerListeners = function() { }; chrome.webRequest.onBeforeRequest.addListener( onBeforeRequest, + //function(details) { + // quickProfiler.start('onBeforeRequest'); + // var r = onBeforeRequest(details); + // quickProfiler.stop(); + // return r; + //}, { 'urls': this.onBeforeRequest.urls || [''], 'types': this.onBeforeRequest.types || [] diff --git a/src/js/traffic.js b/src/js/traffic.js index 7d2af1766..a5089a760 100644 --- a/src/js/traffic.js +++ b/src/js/traffic.js @@ -366,12 +366,6 @@ vAPI.net.onBeforeRequest = { ], extra: [ 'blocking' ], callback: onBeforeRequest - //function(details) { - // quickProfiler.start('onBeforeRequest'); - // var r = onBeforeRequest(details); - // quickProfiler.stop(); - // return r; - //}, }; vAPI.net.onBeforeSendHeaders = { @@ -384,12 +378,6 @@ vAPI.net.onBeforeSendHeaders = { ], extra: [ 'blocking', 'requestHeaders' ], callback: onBeforeSendHeaders - //function(details) { - // quickProfiler.start('onBeforeSendHeaders'); - // var r = onBeforeSendHeaders(details); - // quickProfiler.stop(); - // return r; - //}, }; vAPI.net.onHeadersReceived = {