Skip to content

Commit

Permalink
fixed wasm loading issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengarrett committed Sep 16, 2024
1 parent c0ea960 commit 17129dd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion handler/app/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Hrefs() Paths {
Bootstrap5JS: "/js/bootstrap.bundle.min.js",
BootstrapIcons: "/svg/bootstrap-icons.svg",
DosboxJS: "/js/wdosbox.js",
DosboxWasm: "/js/wdosbox.wasm.js",
DosboxWasm: "/js/wdosbox.wasm",
EditArtifact: "/js/editor-artifact.min.js",
EditAssets: "/js/editor-assets.min.js",
EditForApproval: "/js/editor-forapproval.min.js",
Expand Down
1 change: 1 addition & 0 deletions handler/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func (c Configuration) embed(e *echo.Echo, public embed.FS) *echo.Echo {
e.FileFS("/osd.xml", "public/text/osd.xml", public)
e.FileFS("/robots.txt", "public/text/robots.txt", public)
e.FileFS("/site.webmanifest", "public/text/site.webmanifest.json", public)
e.FileFS("/wdosbox.wasm.js", "public/js/wdosbox.wasm", public) // this is required by `js-dos.js`
return e
}

Expand Down
File renamed without changes.

0 comments on commit 17129dd

Please sign in to comment.