Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: tweak assets folder

Steven8773a3d2c1cd
diff --git a/web/src/wasm/gomark.wasm b/web/src/assets/gomark.wasm
similarity index 99%
rename from web/src/wasm/gomark.wasm
rename to web/src/assets/gomark.wasm
index 90a479f04..6d6ea0020 100755
Binary files a/web/src/wasm/gomark.wasm and b/web/src/assets/gomark.wasm differ
diff --git a/web/src/wasm/wasm_exec.js b/web/src/assets/wasm_exec.js
similarity index 100%
rename from web/src/wasm/wasm_exec.js
rename to web/src/assets/wasm_exec.js
diff --git a/web/src/main.tsx b/web/src/main.tsx
index d0980f849..abad1e073 100644
--- a/web/src/main.tsx
+++ b/web/src/main.tsx
@@ -11,12 +11,12 @@ import "./less/highlight.less";
import router from "./router";
import store from "./store";
import theme from "./theme";
-import wasmUrl from "./wasm/gomark.wasm?url";
-import "./wasm/wasm_exec.js";
+import gomarkWasm from "./assets/gomark.wasm?url";
+import "./assets/wasm_exec.js";
(async () => {
const go = new window.Go();
- const responsePromise = fetch(wasmUrl);
+ const responsePromise = fetch(gomarkWasm);
const { instance } = await WebAssembly.instantiateStreaming(responsePromise, go.importObject);
go.run(instance);