This commit is contained in:
Nicolas Lepage 2021-01-22 00:05:38 +01:00
parent 71277ea3f9
commit 211427cb34
No known key found for this signature in database
GPG Key ID: B0879E35E66D8F6F

2
sw.js
View File

@ -11,7 +11,7 @@ self.wasmhttp = {
},
}
function registerWasmHTTPListener(wasm, base, args) {
function registerWasmHTTPListener(wasm, base, args = []) {
let path = new URL(registration.scope).pathname
if (base && base !== '') path = `${trimEnd(path, '/')}/${trimStart(base, '/')}`