From 3ee4bd65c6ab6806bff6de838c135555de7818d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=20Kl=C3=A4rner?= Date: Fri, 15 Jan 2021 22:53:55 +0100 Subject: [PATCH] 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. --- CHANGELOG.md | 1 + js/loader.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbebb44a..7a7b1b5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ _This release is scheduled to be released on 2021-04-01._ - Added default log levels to stop calendar log spamming. - Fix socket.io cors errors, see [breaking change since socket.io v3](https://socket.io/docs/v3/handling-cors/) - Fix Issue with weather forecast icons due to fixed day start and end time (#2221) +- Fix empty directory for each module's main javascript file in the inspector ## [2.14.0] - 2021-01-01 diff --git a/js/loader.js b/js/loader.js index 91a17329..4858ace8 100644 --- a/js/loader.js +++ b/js/loader.js @@ -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);