Skip to content

Commit

Permalink
Created React GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Apr 19, 2024
1 parent 8778fd4 commit 60e7c1d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions main.js
Expand Up @@ -1033,6 +1033,17 @@ function main() {
!debugMode && patchFont()
.then(patched => patched && adapter.log.debug('Font patched'));

// correct jsonConfig for admin
adapter.getForeignObject('system.adapter.' + adapter.namespace, (err, obj) => {
if (obj && obj.common) {
if (obj.common.adminUI?.config !== 'json') {
obj.common.adminUI = obj.common.adminUI || {};
obj.common.adminUI.config = 'json';
adapter.setForeignObject(obj._id, obj);
}
}
});

// todo
context.errorLogFunction = webstormDebug ? console : adapter.log;
activeStr = `${adapter.namespace}.scriptEnabled.`;
Expand Down

0 comments on commit 60e7c1d

Please sign in to comment.