mirror of https://github.com/gorhill/uBlock.git
this fixes #300
This commit is contained in:
parent
81bb75cd5e
commit
d94741a781
|
@ -201,6 +201,13 @@ housekeep itself.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// https://github.com/gorhill/uBlock/issues/300
|
||||||
|
// If no committed entry was found, fall back on the bottom-most one
|
||||||
|
// as being the committed one by default.
|
||||||
|
if ( i === -1 && this.stack.length !== 0 ) {
|
||||||
|
this.stack[0].committed = true;
|
||||||
|
i = 0;
|
||||||
|
}
|
||||||
i += 1;
|
i += 1;
|
||||||
if ( i < this.stack.length ) {
|
if ( i < this.stack.length ) {
|
||||||
this.stack.length = i;
|
this.stack.length = i;
|
||||||
|
|
Loading…
Reference in New Issue