Skip to content

Commit

Permalink
Fix priority
Browse files Browse the repository at this point in the history
  • Loading branch information
sorz committed Jan 2, 2024
1 parent 5ee429c commit 894c335
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export class Rule {
condition: {
resourceTypes: ["main_frame", "sub_frame"],
urlFilter: this.host === "*" ? "*" : `||${this.host}`
}
},
priority: this.host.split(".").length
};
}

Expand Down

0 comments on commit 894c335

Please sign in to comment.