mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: tweak assets folder
This commit is contained in:
Binary file not shown.
@@ -11,12 +11,12 @@ import "./less/highlight.less";
|
|||||||
import router from "./router";
|
import router from "./router";
|
||||||
import store from "./store";
|
import store from "./store";
|
||||||
import theme from "./theme";
|
import theme from "./theme";
|
||||||
import wasmUrl from "./wasm/gomark.wasm?url";
|
import gomarkWasm from "./assets/gomark.wasm?url";
|
||||||
import "./wasm/wasm_exec.js";
|
import "./assets/wasm_exec.js";
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
const go = new window.Go();
|
const go = new window.Go();
|
||||||
const responsePromise = fetch(wasmUrl);
|
const responsePromise = fetch(gomarkWasm);
|
||||||
const { instance } = await WebAssembly.instantiateStreaming(responsePromise, go.importObject);
|
const { instance } = await WebAssembly.instantiateStreaming(responsePromise, go.importObject);
|
||||||
go.run(instance);
|
go.run(instance);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user