diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 013f502..51d7a27 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,10 +19,6 @@ jobs: - name: run build working-directory: ./client run: ./build.sh all - - - name: run tests - working-directory: ./client - run: ./tests/run.sh - name: upload img uses: actions/upload-artifact@v4 diff --git a/client/fragments/load_later.js b/client/fragments/load_later.js index 79087a1..2fb25b4 100644 --- a/client/fragments/load_later.js +++ b/client/fragments/load_later.js @@ -1,13 +1,16 @@ /* REPLACE var asm ?= ?createWasm\(\); */ -var asm = null; +if (isDataURI(wasmBinaryFile)) var asm = createWasm(); +else var asm = null; /* REPLACE var wasmExports ?= ?createWasm\(\); */ -var wasmExports = null; +if (isDataURI(wasmBinaryFile)) var wasmExports = createWasm(); +else var wasmExports = null; -/* DELETE +/* REPLACE run\(\);\n\n */ +if (isDataURI(wasmBinaryFile)) run(); \ No newline at end of file diff --git a/client/index.html b/client/index.html index 37c5d40..cc83238 100644 --- a/client/index.html +++ b/client/index.html @@ -3,7 +3,7 @@ - +