From d83d5225c813beab6a2dcc7346af5968ef3a91dd Mon Sep 17 00:00:00 2001 From: joeyak Date: Wed, 13 Mar 2019 15:28:21 -0400 Subject: [PATCH] Remove the log function which is no longer needed --- wasm/main_wasm.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wasm/main_wasm.go b/wasm/main_wasm.go index 30b8a0c..e5f2c4e 100644 --- a/wasm/main_wasm.go +++ b/wasm/main_wasm.go @@ -8,10 +8,6 @@ import ( "github.com/zorchenhimer/MovieNight/common" ) -func log(s string) { - js.Get("console").Call("log", s) -} - func recieve(v []js.Value) { if len(v) == 0 { fmt.Printf("No data received") @@ -58,7 +54,7 @@ func recieve(v []js.Value) { func send(v []js.Value) { if len(v) != 1 { - log(fmt.Sprintf("expected 1 parameter, got %d", len(v))) + fmt.Printf("expected 1 parameter, got %d", len(v)) return } js.Call("websocketSend", v)