mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
parent
be0a3dcf5a
commit
4fce81e904
1 changed files with 10 additions and 10 deletions
|
@ -70,13 +70,13 @@ var onBeforeRequest = function(details) {
|
|||
// https://github.com/gorhill/uBlock/issues/114
|
||||
var requestContext = pageStore;
|
||||
|
||||
//var frameStore;
|
||||
//var frameId = details.frameId;
|
||||
//if ( frameId > 0 ) {
|
||||
// if ( frameStore = pageStore.getFrame(frameId) ) {
|
||||
// requestContext = frameStore;
|
||||
// }
|
||||
//}
|
||||
var frameStore;
|
||||
var frameId = details.frameId;
|
||||
if ( frameId > 0 ) {
|
||||
if ( frameStore = pageStore.getFrame(frameId) ) {
|
||||
requestContext = frameStore;
|
||||
}
|
||||
}
|
||||
|
||||
var reason = false;
|
||||
if ( pageStore.getNetFilteringSwitch() ) {
|
||||
|
@ -90,9 +90,9 @@ var onBeforeRequest = function(details) {
|
|||
//console.debug('µBlock> onBeforeRequest()> ALLOW "%s" (%o)', details.url, details);
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/114
|
||||
//if ( frameId > 0 && frameStore === undefined ) {
|
||||
// pageStore.addFrame(frameId, requestURL);
|
||||
//}
|
||||
if ( frameId > 0 && frameStore === undefined ) {
|
||||
pageStore.addFrame(frameId, requestURL);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue