This commit is contained in:
Nicolas Lepage 2020-05-29 00:05:29 +02:00
parent feec60fb35
commit 254bd5e2ea
No known key found for this signature in database
GPG Key ID: B0879E35E66D8F6F
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
<script src="https://cdn.jsdelivr.net/gh/nlepage/go-wasm-http-server@21aa954d1c747b6e556c42eacb5a17478245dd17/index.js"></script>
<script>
async function hello() {
res=await fetch('api/hello', {
res = await fetch('api/hello', {
method: 'POST',
headers: {
'Content-Type': 'application/json'

2
sw.js
View File

@ -1,4 +1,4 @@
importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.13.4/misc/wasm/wasm_exec.js')
importScripts('https://cdn.jsdelivr.net/gh/golang/go@go1.14.3/misc/wasm/wasm_exec.js')
const startWasm = async (wasm, WASMHTTP_HANDLER_ID, WASMHTTP_PATH) => {
const go = new Go()