Skip to content

Commit

Permalink
fix: wrongful import path in v2.0.0 example
Browse files Browse the repository at this point in the history
  • Loading branch information
nlepage committed Oct 14, 2024
1 parent 23cde9d commit 74cbaf8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
```
Expand Down
2 changes: 1 addition & 1 deletion docs/hello-sse/sw.js
Original file line number Diff line number Diff line change
@@ -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())
Expand Down
2 changes: 1 addition & 1 deletion docs/hello-state-keepalive/sw.js
Original file line number Diff line number Diff line change
@@ -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())
Expand Down
2 changes: 1 addition & 1 deletion docs/hello-state/sw.js
Original file line number Diff line number Diff line change
@@ -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())
Expand Down
2 changes: 1 addition & 1 deletion docs/hello/sw.js
Original file line number Diff line number Diff line change
@@ -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())
Expand Down
2 changes: 1 addition & 1 deletion example_json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 74cbaf8

Please sign in to comment.