Community Tip - You can change your system assigned username to something more personal in your community settings. X
Why window.location.hostname, window.location.host codes and showing errors inside Thing services??
Solved! Go to Solution.
In your Things (Server side JScript) window and location do not exist.
if you are doing this in an Expression widget, client side, Window is not allowed.
In your Things (Server side JScript) window and location do not exist.
if you are doing this in an Expression widget, client side, Window is not allowed.
What you mean when you telling 'client side'?
You need the code to run in a Mashup/web page on the user's machine (How you normally expect JS to be used)