mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2025-03-10 17:29:10 +00:00
⚗️
This commit is contained in:
parent
0d506e06c8
commit
c0706571bd
@ -20,7 +20,13 @@
|
|||||||
<label for="name">Name : </label><input id="name" value="World">
|
<label for="name">Name : </label><input id="name" value="World">
|
||||||
<button onclick="hello()">Hello</button>
|
<button onclick="hello()">Hello</button>
|
||||||
<script>
|
<script>
|
||||||
navigator.serviceWorker.register('sw.js')
|
(async () => {
|
||||||
|
try {
|
||||||
|
await navigator.serviceWorker.register('sw.js')
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e)
|
||||||
|
}
|
||||||
|
})()
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user