1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 16:47:15 +02:00

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 ) { if ( e.message.isURLWhiteListed ) {
block = µb.URI.hostnameFromURI(e.message.isURLWhiteListed); // https://github.com/gorhill/uBlock/issues/595
block = µb.URI.domainFromHostname(block) || block; // Do not access µb.netWhitelist directly
e.message = !µb.getNetFilteringSwitch(e.message.isURLWhiteListed);
// TODO: revise, this can't work properly
e.message = !!µb.netWhitelist[block];
return e.message; return e.message;
} }