Skip to content

Commit

Permalink
rm touch
Browse files Browse the repository at this point in the history
  • Loading branch information
po3rin committed Jun 15, 2019
1 parent 61bb3d1 commit 6dbee17
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
build:
GOOS=js GOARCH=wasm go build -o main.wasm
exec:
goexec 'http.ListenAndServe(":8080", http.FileServer(http.Dir(".")))'
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ func registerCallbacks() {
return nil
})
js.Global().Get("document").Call("getElementById", "button").Call("addEventListener", "click", cb)
js.Global().Get("document").Call("getElementById", "button").Call("ontouchstart", "click", cb)
}

func main() {
Expand Down
Binary file modified main.wasm
Binary file not shown.

0 comments on commit 6dbee17

Please sign in to comment.