1
1
mirror of https://github.com/gorhill/uBlock.git synced 2025-10-05 21:32:39 +02:00

Fix incorrect test

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3736
This commit is contained in:
Raymond Hill
2025-08-01 10:38:40 -04:00
parent 14a9572c86
commit 171ddd3e06

View File

@@ -287,7 +287,7 @@ vAPI.Net = class extends vAPI.Net {
if ( domainFromHostname(cn) === domainFromHostname(hn) ) { return; }
}
if ( this.cnameIgnoreList !== null ) {
if ( this.cnameIgnoreList.test(cn) === false ) { return; }
if ( this.cnameIgnoreList.test(cn) ) { return; }
}
if ( this.cnameIgnoreRootDocument ) {
const origin = hostnameFromNetworkURL(details.documentUrl || details.url);