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