mirror of https://github.com/gorhill/uBlock.git
this probably fixes #595
This commit is contained in:
parent
42db160b93
commit
da7398d585
|
@ -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 New Issue