refer to local paths

This commit is contained in:
Corwin 2023-07-05 21:47:36 +01:00
parent cb68d8c695
commit 7665135329
No known key found for this signature in database
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{
"name": "website",
"version": "0.1.0",
"homepage": "./",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",

View file

@ -85,7 +85,7 @@ function App() {
{isPlaying ? (
<Mgba
ref={mgbaRef}
gameUrl="/game.gba"
gameUrl="./game.gba"
volume={volume}
controls={bindings.Actual}
paused={paused}

View file

@ -73,7 +73,7 @@ export const Mgba = forwardRef<MgbaHandle, MgbaProps>(
canvas: canvas.current,
locateFile: (file: string) => {
if (file === "mgba.wasm") {
return "/vendor/mgba.wasm";
return "./vendor/mgba.wasm";
}
return file;
},