mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
Fail graciously if no benchmark dataset found
This commit is contained in:
parent
b784b7d569
commit
ddc2b11657
@ -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 New Issue
Block a user