1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 08:15:03 +12:00

move profiling code to platform-specific

This commit is contained in:
gorhill 2015-02-03 18:40:56 -05:00
parent 6123bff635
commit 754aa6cd8b

View file

@ -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 || ['<all_urls>'],
'types': this.onBeforeRequest.types || []