mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Fix incorrect use of this
in static method
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/568
Regression from:
- 19ece97b0c
This commit is contained in:
parent
8a7e704080
commit
57890d60ff
1 changed files with 2 additions and 2 deletions
|
@ -585,7 +585,7 @@ const FilterWildcard1 = class {
|
|||
}
|
||||
|
||||
static compile(details) {
|
||||
if ( this.token === '*' ) { return; }
|
||||
if ( details.token === '*' ) { return; }
|
||||
if ( details.anchor !== 0 ) { return; }
|
||||
const s = details.f;
|
||||
let pos = s.indexOf('*');
|
||||
|
@ -700,7 +700,7 @@ const FilterWildcard1HnAnchored = class {
|
|||
}
|
||||
|
||||
static compile(details) {
|
||||
if ( this.token === '*' ) { return; }
|
||||
if ( details.token === '*' ) { return; }
|
||||
if ( (details.anchor & 0x0b001) !== 0 ) { return; }
|
||||
const s = details.f;
|
||||
let pos = s.indexOf('*');
|
||||
|
|
Loading…
Reference in a new issue