From 2f9a27269628364c22ec6f824f83b955aab0444e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Thu, 26 Jan 2017 18:33:37 -0300 Subject: [PATCH] Improvement of code block about from discussion Pull Request #653 https://github.com/MichMich/MagicMirror/pull/653 --- js/app.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/js/app.js b/js/app.js index 83d637b2..9f992b29 100644 --- a/js/app.js +++ b/js/app.js @@ -48,10 +48,9 @@ var App = function() { // For this check proposed to TestSuite // https://forum.magicmirror.builders/topic/1456/test-suite-for-magicmirror/8 - if (global.configuration_file === undefined ) { - var configFilename = path.resolve(global.root_path + "/config/config.js"); - } else { - var configFilename = path.resolve(global.configuration_file); + var configFilename = path.resolve(global.root_path + "/config/config.js"); + if (typeof(global.configuration_file) === "undefined" ) { + configFilename = path.resolve(global.configuration_file); } try {