Skip to content

Commit 60e7c1d

Browse files
committed
Created React GUI
1 parent 8778fd4 commit 60e7c1d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

main.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,17 @@ function main() {
10331033
!debugMode && patchFont()
10341034
.then(patched => patched && adapter.log.debug('Font patched'));
10351035

1036+
// correct jsonConfig for admin
1037+
adapter.getForeignObject('system.adapter.' + adapter.namespace, (err, obj) => {
1038+
if (obj && obj.common) {
1039+
if (obj.common.adminUI?.config !== 'json') {
1040+
obj.common.adminUI = obj.common.adminUI || {};
1041+
obj.common.adminUI.config = 'json';
1042+
adapter.setForeignObject(obj._id, obj);
1043+
}
1044+
}
1045+
});
1046+
10361047
// todo
10371048
context.errorLogFunction = webstormDebug ? console : adapter.log;
10381049
activeStr = `${adapter.namespace}.scriptEnabled.`;

0 commit comments

Comments
 (0)