diff --git a/README.md b/README.md index 57b7ea6..2f39330 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Create a ServiceWorker file with the following code: 📄 `sw.js` ```js importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.18.4/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v1.1.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') registerWasmHTTPListener('path/to/server.wasm') ``` diff --git a/docs/hello-sse/sw.js b/docs/hello-sse/sw.js index df8ff57..7e959cd 100644 --- a/docs/hello-sse/sw.js +++ b/docs/hello-sse/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v1.1.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') addEventListener('install', (event) => { event.waitUntil(skipWaiting()) diff --git a/docs/hello-state-keepalive/sw.js b/docs/hello-state-keepalive/sw.js index 5123ea9..eb80955 100644 --- a/docs/hello-state-keepalive/sw.js +++ b/docs/hello-state-keepalive/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v1.1.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') addEventListener('install', event => { event.waitUntil(skipWaiting()) diff --git a/docs/hello-state/sw.js b/docs/hello-state/sw.js index 3371bbc..c137cd2 100644 --- a/docs/hello-state/sw.js +++ b/docs/hello-state/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v1.1.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') addEventListener('install', (event) => { event.waitUntil(skipWaiting()) diff --git a/docs/hello/sw.js b/docs/hello/sw.js index df8ff57..7e959cd 100644 --- a/docs/hello/sw.js +++ b/docs/hello/sw.js @@ -1,5 +1,5 @@ importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.23.1/misc/wasm/wasm_exec.js') -importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v1.1.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.0/sw.js') addEventListener('install', (event) => { event.waitUntil(skipWaiting())