From 5c0f828dfd9ed0d54b825f2b5f45470855cf41ce Mon Sep 17 00:00:00 2001 From: gudzpoz Date: Tue, 31 Oct 2023 14:06:10 +0800 Subject: [PATCH] Fix patch version in unpkg url --- src/factory.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/factory.ts b/src/factory.ts index 48c0d50..236c117 100755 --- a/src/factory.ts +++ b/src/factory.ts @@ -14,8 +14,7 @@ export default class LuaFactory { (typeof self === 'object' && self?.constructor?.name === 'DedicatedWorkerGlobalScope') if (isBrowser) { - const majorminor = version.slice(0, version.lastIndexOf('.')) - customWasmUri = `https://unpkg.com/wasmoon@${majorminor}/dist/glue.wasm` + customWasmUri = `https://unpkg.com/wasmoon@${version}/dist/glue.wasm` } }