From 85e80678ae293f76299390635887cd2d281f5ded Mon Sep 17 00:00:00 2001 From: Peter Daniel Date: Tue, 9 Apr 2024 23:14:13 +0100 Subject: [PATCH] update config properly --- index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 03f40ea..e2875a7 100644 --- a/index.js +++ b/index.js @@ -74,6 +74,8 @@ class XDIP extends InstanceBase { }, } + // console.log(this.gotOptions) + this.updateVariables() this.updateActions() this.getAccessToken().then(this.getNodes()).then(this.getChannels()).then(this.getCurrentChannel()) @@ -83,7 +85,11 @@ class XDIP extends InstanceBase { console.log('configUpdated') this.config = config - console.log(this.config) + this.gotOptions.prefixUrl = 'https://' + this.config.ipAddress + ':' + this.config.port + + // console.log(this.gotOptions) + // console.log(this.config) + this.updateVariables() this.getAccessToken().then(this.getNodes()).then(this.getChannels()).then(this.getCurrentChannel()) }