Page 1 of 1

Environment?

Posted: Mon Jun 29, 2026 4:05 pm
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

Re: Environment?

Posted: Mon Jun 29, 2026 6:38 pm
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.