Merge pull request #658 from roramirez/fix-validate-file-config-by-variable

Fix bug validation when is not set MM_CONFIG_FILE enviroment variable
This commit is contained in:
Michael Teeuw 2017-01-28 06:20:23 +01:00 committed by GitHub
commit c82eec09b7

View File

@ -49,7 +49,7 @@ var App = function() {
// For this check proposed to TestSuite
// https://forum.magicmirror.builders/topic/1456/test-suite-for-magicmirror/8
var configFilename = path.resolve(global.root_path + "/config/config.js");
if (typeof(global.configuration_file) === "undefined" ) {
if (typeof(global.configuration_file) !== "undefined") {
configFilename = path.resolve(global.configuration_file);
}