From 7a7a1516af8b051a837260024381dddcdf8bcaf0 Mon Sep 17 00:00:00 2001 From: Alexander Zibert Date: Wed, 1 Nov 2023 12:04:49 +0100 Subject: [PATCH] add public path --- frontend/package.json | 1 + frontend/public/manifest.json | 4 ++-- frontend/public/wasm/worker.mjs | 2 +- frontend/src/deductions.tsx | 4 +++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index bb9f802..9b00c18 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -2,6 +2,7 @@ "name": "turing-machine-interactive-sheet", "version": "0.25.0", "private": true, + "homepage": "https://alexander-zibert.github.io/turing-machine-board-game-solver", "dependencies": { "@emotion/react": "^11.10.6", "@emotion/styled": "^11.10.6", diff --git a/frontend/public/manifest.json b/frontend/public/manifest.json index 37a53cc..cab63e9 100644 --- a/frontend/public/manifest.json +++ b/frontend/public/manifest.json @@ -3,12 +3,12 @@ "name": "Turing Machine Interactive Sheet", "icons": [ { - "src": "/assets/android-chrome-192x192.png", + "src": "/turing-machine-board-game-solver/assets/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" }, { - "src": "/assets/android-chrome-512x512.png", + "src": "/turing-machine-board-game-solver/assets/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" } diff --git a/frontend/public/wasm/worker.mjs b/frontend/public/wasm/worker.mjs index 445949b..1a0a36d 100644 --- a/frontend/public/wasm/worker.mjs +++ b/frontend/public/wasm/worker.mjs @@ -30,7 +30,7 @@ globalThis.onerror = (event) => { }; }; -importScripts("/wasm/wasmWrapper.js"); +importScripts("/turing-machine-board-game-solver/wasm/wasmWrapper.js"); function getPossibleCombinations({ state, diff --git a/frontend/src/deductions.tsx b/frontend/src/deductions.tsx index c4a2b47..8cf27b0 100644 --- a/frontend/src/deductions.tsx +++ b/frontend/src/deductions.tsx @@ -6,7 +6,9 @@ export type Query = { result: boolean; }; -const myWorker = new Worker("/wasm/worker.mjs"); +const myWorker = new Worker( + "/turing-machine-board-game-solver/wasm/worker.mjs" +); function checkDigits(state: RootState, possibleCodes: string[]) { const digits = { triangle: new Set(), square: new Set(), circle: new Set() };