File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ const Modes = {
2121 CRASHED : 'crashed' ,
2222}
2323
24+ let safeMode = false
25+ if ( typeof window !== 'undefined' ) {
26+ safeMode = new URLSearchParams ( window . location . search ) . get ( 'safemode' )
27+ }
28+
2429export class App extends Entity {
2530 constructor ( world , data , local ) {
2631 super ( world , data , local )
@@ -121,7 +126,10 @@ export class App extends Entity {
121126 this . root . activate ( { world : this . world , entity : this , moving : ! ! this . data . mover } )
122127 // execute script
123128 const runScript =
124- script && ! crashed && ( this . mode === Modes . ACTIVE || ( this . mode === Modes . MOVING && ! this . resetOnMove ) )
129+ script &&
130+ ! crashed &&
131+ ! safeMode &&
132+ ( this . mode === Modes . ACTIVE || ( this . mode === Modes . MOVING && ! this . resetOnMove ) )
125133 // (this.mode === Modes.ACTIVE && script && !crashed) ||
126134 // (this.mode === Modes.MOVING && !this.resetOnMove && !this.scriptError)
127135 if ( runScript ) {
You can’t perform that action at this time.
0 commit comments