mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
this probably fixes #595
This commit is contained in:
parent
42db160b93
commit
da7398d585
1 changed files with 3 additions and 5 deletions
|
@ -617,11 +617,9 @@ vAPI.net.registerListeners = function() {
|
|||
}
|
||||
|
||||
if ( e.message.isURLWhiteListed ) {
|
||||
block = µb.URI.hostnameFromURI(e.message.isURLWhiteListed);
|
||||
block = µb.URI.domainFromHostname(block) || block;
|
||||
|
||||
// TODO: revise, this can't work properly
|
||||
e.message = !!µb.netWhitelist[block];
|
||||
// https://github.com/gorhill/uBlock/issues/595
|
||||
// Do not access µb.netWhitelist directly
|
||||
e.message = !µb.getNetFilteringSwitch(e.message.isURLWhiteListed);
|
||||
return e.message;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue