Skip to content

Commit

Permalink
rel url fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jembishop committed Jul 14, 2023
1 parent 84acdc6 commit 68c7137
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Trunk.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
public_url = "/laser-simulator/"
10 changes: 5 additions & 5 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<title>Laser Simulator</title>

<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
<script type="module">import init from '/laser-simulatorlaser-simulator-446c3816ce720645.js';init('/laser-simulatorlaser-simulator-446c3816ce720645_bg.wasm');</script>
<script type="module">import init from '/laser-simulator/laser-simulator-446c3816ce720645.js';init('/laser-simulator/laser-simulator-446c3816ce720645_bg.wasm');</script>
<!-- this is the base url relative to which other urls will be constructed. trunk will insert this from the public-url option -->
<base href="/laser-simulator">
<base href="/laser-simulator/">

<link rel="icon" href="/laser-simulatorfavicon-7b9a2aed340c913d.png">
<link rel="icon" href="/laser-simulator/favicon-7b9a2aed340c913d.png">



Expand Down Expand Up @@ -110,8 +110,8 @@

</style>

<link rel="preload" href="/laser-simulatorlaser-simulator-446c3816ce720645_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="modulepreload" href="/laser-simulatorlaser-simulator-446c3816ce720645.js"></head>
<link rel="preload" href="/laser-simulator/laser-simulator-446c3816ce720645_bg.wasm" as="fetch" type="application/wasm" crossorigin="">
<link rel="modulepreload" href="/laser-simulator/laser-simulator-446c3816ce720645.js"></head>

<body>
<!-- The WASM code will resize the canvas dynamically -->
Expand Down

0 comments on commit 68c7137

Please sign in to comment.