Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! 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)