Environment?

Just starting out? Need help? Post your questions and find answers here.
juror
Posts: 23
Joined: Fri Aug 01, 2014 4:39 am

Environment?

Post by juror »

Easy way to determine if my program is being run in the development environment or being run from the web-site?

Probably very simple, but I'm not seeing it. Wanting to obtain programparameters. I did attempt a forum search however was unsuccessful in several attempts.

Thanks and cheers
hoerbie
Posts: 150
Joined: Sun Mar 17, 2019 5:51 pm
Location: DE/BY/MUC

Re: Environment?

Post by hoerbie »

You can try reading window.location.href in javascript, this normally should be the URL, where the SB program was loaded from, or try window.location.host should show only the hostname and port.
Post Reply