fixed using uninitialized var

This commit is contained in:
gorhill 2015-03-31 09:07:14 -04:00
parent 12fc8faf3a
commit 3d38285100
1 changed files with 2 additions and 1 deletions

View File

@ -176,6 +176,8 @@ var onBeforeRequest = function(details) {
/******************************************************************************/
var onBeforeRootFrameRequest = function(details) {
var requestURL = details.url;
mostRecentRootDocURL = requestURL;
mostRecentRootDocURLTimestamp = Date.now();
@ -184,7 +186,6 @@ var onBeforeRootFrameRequest = function(details) {
// This must be executed regardless of whether the request is
// behind-the-scene
var µb = µBlock;
var requestURL = details.url;
var requestHostname = details.hostname;
var requestDomain = µb.URI.domainFromHostname(requestHostname);
var context = {