summaryrefslogtreecommitdiffstats
path: root/misc/dist
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2024-09-30 11:27:43 -0400
committerAdam Scott <ascott.ca@gmail.com>2024-09-30 11:27:43 -0400
commit4431af91538c2454a77ff5323d76de2a10b0329d (patch)
treebc638ae087371c3e85e834c9149b1855f0351c10 /misc/dist
parente3213aaef5e0e72b8272e65d989d3d8222be17ca (diff)
downloadredot-engine-4431af91538c2454a77ff5323d76de2a10b0329d.tar.gz
Fix web export infinite reload issue
Diffstat (limited to 'misc/dist')
-rw-r--r--misc/dist/html/full-size.html7
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