mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 17:41:03 +01:00
Fail graciously if no benchmark dataset found
This commit is contained in:
parent
b784b7d569
commit
ddc2b11657
1 changed files with 2 additions and 1 deletions
|
@ -692,7 +692,8 @@
|
|||
|
||||
const datasetURL = µBlock.hiddenSettings.benchmarkDatasetURL;
|
||||
if ( datasetURL === 'unset' ) {
|
||||
return Promise.reject('No dataset');
|
||||
console.info(`No benchmark dataset available.`);
|
||||
return Promise.resolve();
|
||||
}
|
||||
console.info(`Loading benchmark dataset...`);
|
||||
datasetPromise = µBlock.assets.fetchText(datasetURL).then(details => {
|
||||
|
|
Loading…
Reference in a new issue