this fixes #2

pull/2/head
gorhill 10 years ago
parent 0c6d0b3a98
commit 0d459545a2

@ -219,10 +219,6 @@
µm.ubiquitousBlacklist.reset();
var locations = Object.keys(hostsFiles);
hostsFileLoadCount = locations.length;
if ( hostsFileLoadCount === 0 ) {
loadHostsFilesEnd();
return;
}
// Load all hosts file which are not disabled.
var location;
@ -233,6 +229,12 @@
}
µm.assets.get(location, mergeHostsFile);
}
// https://github.com/gorhill/uMatrix/issues/2
if ( hostsFileLoadCount === 0 ) {
loadHostsFilesEnd();
return;
}
};
this.getAvailableHostsFiles(loadHostsFilesStart);

Loading…
Cancel
Save