Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. 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)