diff --git a/README.md b/README.md index c266a68..bd293dc 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@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/sw.js') registerWasmHTTPListener('path/to/server.wasm') ``` diff --git a/docs/hello-sse/sw.js b/docs/hello-sse/sw.js index 7e959cd..e5eeb34 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@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/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 eb80955..0c35cc9 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@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/sw.js') addEventListener('install', event => { event.waitUntil(skipWaiting()) diff --git a/docs/hello-state/sw.js b/docs/hello-state/sw.js index c137cd2..a02c3c3 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@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/sw.js') addEventListener('install', (event) => { event.waitUntil(skipWaiting()) diff --git a/docs/hello/sw.js b/docs/hello/sw.js index 7e959cd..e5eeb34 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@v2.0.0/sw.js') +importScripts('https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@v2.0.1/sw.js') addEventListener('install', (event) => { event.waitUntil(skipWaiting()) diff --git a/example_json_test.go b/example_json_test.go index 3b5fbfd..d7fd8f1 100644 --- a/example_json_test.go +++ b/example_json_test.go @@ -5,7 +5,7 @@ import ( "fmt" "net/http" - wasmhttp "github.com/nlepage/go-wasm-http-server/v2/v2" + wasmhttp "github.com/nlepage/go-wasm-http-server/v2" ) // Demonstrates a simple hello JSON service.