diff --git a/src/js/storage.js b/src/js/storage.js index fb4469d..649639d 100644 --- a/src/js/storage.js +++ b/src/js/storage.js @@ -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);