Improvement of code block about from discussion Pull Request #653

https://github.com/MichMich/MagicMirror/pull/653
This commit is contained in:
Rodrigo Ramírez Norambuena 2017-01-26 18:33:37 -03:00
parent 552ea0356e
commit 2f9a272696

View file

@ -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 {