diff options
Diffstat (limited to 'misc')
-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 |