Fix path for gateway

This commit is contained in:
CrispyBaguette 2021-11-21 20:18:43 +01:00
parent 0ec07b01bc
commit c664602314
2 changed files with 3 additions and 3 deletions

4
dist/index.html vendored
View File

@ -1,8 +1,8 @@
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<script src="/wasm_exec.js"></script> <script src="./wasm_exec.js"></script>
<script async src="/main.js"></script> <script async src="./main.js"></script>
<style> <style>
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
body { body {

2
dist/main.js vendored
View File

@ -6,7 +6,7 @@
// Setup Wasm stuff // Setup Wasm stuff
const go = new Go(); const go = new Go();
vm = await WebAssembly.instantiateStreaming( vm = await WebAssembly.instantiateStreaming(
fetch("/main.wasm"), fetch("./main.wasm"),
go.importObject go.importObject
); );
go.run(vm.instance); go.run(vm.instance);