Skip to content

Commit

Permalink
appname is now hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 committed Dec 19, 2023
1 parent c084017 commit 59f4ed6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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** -->
### **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

Expand Down
9 changes: 2 additions & 7 deletions setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 59f4ed6

Please sign in to comment.