mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
prevent empty path components for module main scripts
The module.path component has by definition in line 97 a trailing slash. Hence adding another is unneeded, but results in an additional folder in the inspector.
This commit is contained in:
@@ -114,7 +114,7 @@ var Loader = (function () {
|
||||
* @param {Function} callback Function called when done.
|
||||
*/
|
||||
var loadModule = function (module, callback) {
|
||||
var url = module.path + "/" + module.file;
|
||||
var url = module.path + module.file;
|
||||
|
||||
var afterLoad = function () {
|
||||
var moduleObject = Module.create(module.name);
|
||||
|
Reference in New Issue
Block a user