From b1fb177e4b5e492af7f415479cb3d558271030ae Mon Sep 17 00:00:00 2001 From: rejas Date: Tue, 21 Apr 2020 12:38:29 +0200 Subject: [PATCH] Undo "fix" in main.js that broke the tests --- js/main.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/main.js b/js/main.js index 41976568..ea138512 100644 --- a/js/main.js +++ b/js/main.js @@ -343,14 +343,16 @@ var MM = (function() { * Loads the core config and combines it with de system defaults. */ var loadConfig = function() { - let config = window.config; + // FIXME: Think about how to pass config around without breaking tests + /* eslint-disable */ if (typeof config === "undefined") { - window.config = defaults; + config = defaults; Log.error("Config file is missing! Please create a config file."); return; } - window.config = Object.assign({}, defaults, config); + config = Object.assign({}, defaults, config); + /* eslint-enable */ }; /* setSelectionMethodsForModules()