diff options
author | Adam Scott <ascott.ca@gmail.com> | 2024-09-30 11:27:43 -0400 |
---|---|---|
committer | Adam Scott <ascott.ca@gmail.com> | 2024-09-30 11:27:43 -0400 |
commit | 4431af91538c2454a77ff5323d76de2a10b0329d (patch) | |
tree | bc638ae087371c3e85e834c9149b1855f0351c10 /misc/dist | |
parent | e3213aaef5e0e72b8272e65d989d3d8222be17ca (diff) | |
download | redot-engine-4431af91538c2454a77ff5323d76de2a10b0329d.tar.gz |
Fix web export infinite reload issue
Diffstat (limited to 'misc/dist')
-rw-r--r-- | misc/dist/html/full-size.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/dist/html/full-size.html b/misc/dist/html/full-size.html index 1d76abe0a5..352046df30 100644 --- a/misc/dist/html/full-size.html +++ b/misc/dist/html/full-size.html @@ -164,10 +164,11 @@ const engine = new Engine(GODOT_CONFIG); new Promise((resolve) => { setTimeout(() => resolve(), 2000); }), - ]).catch((err) => { - console.error('Error while registering service worker:', err); - }).then(() => { + ]).then(() => { + // Reload if there was no error. window.location.reload(); + }).catch((err) => { + console.error('Error while registering service worker:', err); }); } else { // Display the message as usual |