mirror of https://github.com/gorhill/uBlock.git
jshint
This commit is contained in:
parent
1525a828c1
commit
cfadf76345
|
@ -86,7 +86,7 @@ vAPI.tabs.onClosed = function(tabId) {
|
||||||
// https://github.com/gorhill/uBlock/issues/297
|
// https://github.com/gorhill/uBlock/issues/297
|
||||||
|
|
||||||
vAPI.tabs.onPopup = function(details) {
|
vAPI.tabs.onPopup = function(details) {
|
||||||
//console.debug('vAPI.tabs.onPopup: url="%s"', details.url);
|
//console.debug('vAPI.tabs.onPopup: details = %o', details);
|
||||||
|
|
||||||
var pageStore = µb.pageStoreFromTabId(details.openerTabId);
|
var pageStore = µb.pageStoreFromTabId(details.openerTabId);
|
||||||
var openerURL = details.openerURL || '';
|
var openerURL = details.openerURL || '';
|
||||||
|
@ -121,12 +121,11 @@ vAPI.tabs.onPopup = function(details) {
|
||||||
|
|
||||||
// https://github.com/gorhill/uBlock/issues/91
|
// https://github.com/gorhill/uBlock/issues/91
|
||||||
if ( pageStore ) {
|
if ( pageStore ) {
|
||||||
var context = {
|
pageStore.logRequest({
|
||||||
requestURL: targetURL,
|
requestURL: targetURL,
|
||||||
requestHostname: µb.URI.hostnameFromURI(targetURL),
|
requestHostname: µb.URI.hostnameFromURI(targetURL),
|
||||||
requestType: 'popup'
|
requestType: 'popup'
|
||||||
};
|
}, result);
|
||||||
pageStore.logRequest(context, result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Not blocked
|
// Not blocked
|
||||||
|
|
Loading…
Reference in New Issue