mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2026-01-12 01:59:14 +00:00
⚗️
This commit is contained in:
4
index.js
4
index.js
@@ -28,6 +28,10 @@ self.wasmhttp = {
|
||||
try {
|
||||
if (!wasm) throw TypeError('options.wasm must be defined')
|
||||
|
||||
addEventListener('activate', event => {
|
||||
event.waitUntil(clients.claim())
|
||||
})
|
||||
|
||||
const handlerId = `${nextHandlerId++}`
|
||||
const handler = new Promise(resolve => handlerResolvers[handlerId] = resolve)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user