diff --git a/101-SmartThings.html b/101-SmartThings.html index 19fa5ed0..3b2bd875 100644 --- a/101-SmartThings.html +++ b/101-SmartThings.html @@ -762,12 +762,14 @@

Properties

this.loadRuntimeCapabilities= function(){ return new Promise((resolve,reject)=>{ - $.getJSON('_smartthings/capabilities').then(resolve,reject); + const root = RED.settings.httpNodeRoot||'/'; + $.getJSON(root+'_smartthings/capabilities').then(resolve,reject); }) } this.loadMydeviceInfo=()=>{ return new Promise((resolve,reject)=>{ - $.getJSON('_smartthings/mydevices').then(resolve,reject); + const root = RED.settings.httpNodeRoot||'/'; + $.getJSON(root+'_smartthings/mydevices').then(resolve,reject); }) }