Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeApe committed Jul 23, 2024
1 parent 5b5d93a commit 633eba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ declare global {
export interface Window {
Go: any;
lookUp: DictLookupFn;
ecDictionary:()=>Object;
}
}


async function loadWasm(wasmUrl: string = "/ecdict.wasm") {
//https://davetayls.me/blog/2022-11-24-use-wasm-compiled-golang-functions-in-nextjs
try {
if ("lookUp" in window && typeof window.lookUp === "function") {
return window.lookUp;
Expand Down

0 comments on commit 633eba2

Please sign in to comment.