1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-06 09:37:12 +02:00

raw URL can be the empty string for behind-the-scene scope

This commit is contained in:
gorhill 2015-10-23 12:52:51 -04:00
parent ff4ef62747
commit f4a1bad048

View File

@ -301,7 +301,7 @@ housekeep itself.
// https://github.com/chrisaljoudi/uBlock/issues/1078
// Use both the raw and normalized URLs.
this.netFiltering = µb.getNetFilteringSwitch(this.normalURL);
if ( this.netFiltering && this.rawURL !== this.normalURL ) {
if ( this.netFiltering && this.rawURL !== this.normalURL && this.rawURL !== '' ) {
this.netFiltering = µb.getNetFilteringSwitch(this.rawURL);
}
this.netFilteringReadTime = Date.now();