From f2d2133d7687dbbd79f919becd601c7ee93e7111 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sat, 28 Nov 2015 10:29:05 -0500 Subject: [PATCH] minor code review --- src/js/messaging.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/messaging.js b/src/js/messaging.js index 9e29d85ef..5eddb43fc 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -523,6 +523,7 @@ var filterRequests = function(pageStore, details) { var hostnameFromURI = µb.URI.hostnameFromURI; var redirectEngine = µb.redirectEngine; + var punycodeURL = vAPI.punycodeURL; // Create evaluation context var context = pageStore.createContextFromFrameHostname(details.pageHostname); @@ -531,7 +532,7 @@ var filterRequests = function(pageStore, details) { var i = requests.length; while ( i-- ) { request = requests[i]; - context.requestURL = vAPI.punycodeURL(request.url); + context.requestURL = punycodeURL(request.url); // https://github.com/gorhill/uBlock/issues/978 // Ignore invalid URLs: these would not occur on the HTTP // observer side.