Is there a function you can call that returns true if your in preview mode?
Browser object can do this.
Found in the manual, there is a system condition. is in preview.
Develop games in your browser. Powerful, performant & highly capable.
Right you are, was going from (bad) memory sorry :/