mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
#795: code review as per @Deathamns feedback
This commit is contained in:
parent
ac7a7201cb
commit
da54ae5726
1 changed files with 2 additions and 2 deletions
|
|
@ -151,10 +151,10 @@ const contentObserver = {
|
|||
|
||||
// https://github.com/gorhill/uBlock/issues/795
|
||||
// Only the top main frame can be an orphan
|
||||
let isTopLevel = context === context.top && type === this.MAIN_FRAME;
|
||||
let isTopLevel = context === context.top;
|
||||
let parentFrameId;
|
||||
|
||||
if ( isTopLevel ) {
|
||||
if ( isTopLevel && type === this.MAIN_FRAME ) {
|
||||
parentFrameId = -1;
|
||||
} else if ( context.parent === context.top ) {
|
||||
parentFrameId = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue