Skip to content

Commit

Permalink
Maybe fix web build?
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatNateDev committed Nov 12, 2024
1 parent 4e92833 commit ec6a2ed
Show file tree
Hide file tree
Showing 5 changed files with 896 additions and 387 deletions.
9 changes: 4 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

<script src="index.js"></script>
<script>
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":41044752,"index.wasm":33881897},"focusCanvas":true,"gdextensionLibs":[]};
const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"ensureCrossOriginIsolationHeaders":true,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":41044752,"index.wasm":35407578},"focusCanvas":true,"gdextensionLibs":[]};
const GODOT_THREADS_ENABLED = false;
const engine = new Engine(GODOT_CONFIG);

Expand Down Expand Up @@ -166,11 +166,10 @@
new Promise((resolve) => {
setTimeout(() => resolve(), 2000);
}),
]).then(() => {
// Reload if there was no error.
window.location.reload();
}).catch((err) => {
]).catch((err) => {
console.error('Error while registering service worker:', err);
}).then(() => {
window.location.reload();
});
} else {
// Display the message as usual
Expand Down
Loading

0 comments on commit ec6a2ed

Please sign in to comment.