1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

Avoid pointless check of doc id, presence of doc origin is what matter

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1657
This commit is contained in:
Raymond Hill 2021-07-12 11:26:25 -04:00
parent 717d8593c5
commit f1a453d349
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -996,7 +996,7 @@ vAPI.tabs = new vAPI.Tabs();
{
const NoPageStore = class extends µBlock.PageStore {
getNetFilteringSwitch(fctxt) {
if ( fctxt && fctxt.docId === 0 ) {
if ( fctxt ) {
const docOrigin = fctxt.getDocOrigin();
if ( docOrigin ) {
return µBlock.getNetFilteringSwitch(docOrigin);