Skip to content

Commit

Permalink
Merge pull request #94 from gudzpoz/unpkg-patch-ver
Browse files Browse the repository at this point in the history
Fix patch version in unpkg url
  • Loading branch information
ceifa authored Nov 30, 2023
2 parents fc9fbd4 + 5c0f828 commit 730e21e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}
}

Expand Down

0 comments on commit 730e21e

Please sign in to comment.