this probably fixes #595

This commit is contained in:
gorhill 2015-01-24 17:17:44 -05:00
parent 42db160b93
commit da7398d585

View file

@ -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;
}