Solved
js code
Why window.location.hostname, window.location.host codes and showing errors inside Thing services??
Why window.location.hostname, window.location.host codes and showing errors inside Thing services??
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.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.