mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2025-03-10 17:29:10 +00:00
⚗️
This commit is contained in:
parent
71277ea3f9
commit
211427cb34
2
sw.js
2
sw.js
@ -11,7 +11,7 @@ self.wasmhttp = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
function registerWasmHTTPListener(wasm, base, args) {
|
function registerWasmHTTPListener(wasm, base, args = []) {
|
||||||
let path = new URL(registration.scope).pathname
|
let path = new URL(registration.scope).pathname
|
||||||
if (base && base !== '') path = `${trimEnd(path, '/')}/${trimStart(base, '/')}`
|
if (base && base !== '') path = `${trimEnd(path, '/')}/${trimStart(base, '/')}`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user