From ddc2b1165777d6f5d1f9e37ce2adc1697669b62d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 21 Feb 2020 08:13:15 -0500 Subject: [PATCH] Fail graciously if no benchmark dataset found --- src/js/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/utils.js b/src/js/utils.js index 7cd1eedae..7a4765d1a 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -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 => {