Browse Source

fmt: ws -> window.ws

jamesread 3 years ago
parent
commit
4b3485145f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      webui/js/websocket.js

+ 1 - 1
webui/js/websocket.js

@@ -22,7 +22,7 @@ function websocketOnOpen (evt) {
 
   const foo = '{}'
 
-  ws.send(foo)
+  window.ws.send(foo)
 }
 
 function websocketOnMessage (msg) {