mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 11:22:38 +01:00
minor edit
This commit is contained in:
parent
b563d8bc43
commit
bb3e84f911
@ -101,7 +101,7 @@ var onBeforeSendHeaders = function(details) {
|
|||||||
|
|
||||||
// Special handling for root document.
|
// Special handling for root document.
|
||||||
var requestType = details.type;
|
var requestType = details.type;
|
||||||
if ( requestType === 'main_frame' && details.parentFrameId < 0 ) {
|
if ( requestType === 'main_frame' && details.parentFrameId === -1 ) {
|
||||||
return onBeforeRootDocument(tabId, details);
|
return onBeforeRootDocument(tabId, details);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user