⚗️ Try using symlinks

This commit is contained in:
Nicolas Lepage 2021-01-21 21:56:04 +01:00
parent 2a84a402ce
commit c94f812a7f
No known key found for this signature in database
GPG Key ID: B0879E35E66D8F6F
4 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<html>
<head>
<title>go-wasm-http-server demo</title>
<script src="https://raw.githubusercontent.com/nlepage/go-wasm-http-server/master/index.js"></script>
<script src="lib/index.js"></script>
<script>
async function hello() {
const name = document.querySelector("#name").value

1
docs/lib/index.js Symbolic link
View File

@ -0,0 +1 @@
../../index.js

1
docs/lib/sw.js Symbolic link
View File

@ -0,0 +1 @@
../../sw.js

View File

@ -1 +1 @@
importScripts('https://raw.githubusercontent.com/nlepage/go-wasm-http-server/master/sw.js')
importScripts('lib/sw.js')