From 59f4ed6f3b7d3d46230f932554a45aa704287acc Mon Sep 17 00:00:00 2001 From: foxriver76 Date: Tue, 19 Dec 2023 15:35:01 +0100 Subject: [PATCH] appname is now hardcoded --- README.md | 3 +++ setup.js | 9 ++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f2cd518..6dd9eb7 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,9 @@ Set process.env.JS_CONTROLLER_VERSION to version e.g. `5.0.5-alpha.0-20230617-46 ## Changelog +### **WORK IN PROGRESS** +* (foxriver76) use hardcoded appName instead of inference with a heuristic approach + ### 1.0.7 (2023-12-19) * (foxriver76) allow re-initialization after config change diff --git a/setup.js b/setup.js index 08f31a8..3d99122 100644 --- a/setup.js +++ b/setup.js @@ -37,13 +37,8 @@ function initialize() { pkg.main = pkg.main || 'main.js'; } -function getAppName() { - const parts = rootDir.replace(/\\/g, '/').split('/'); - parts.pop(); - return parts.pop().split('.')[0]; -} - -const appName = getAppName().toLowerCase(); +/** Lowercase application name */ +const appName = 'iobroker'; function loadJSONLDB() { if (!JSONLDB) {