Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! 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)