jamesread пре 2 година
родитељ
комит
4b3485145f
1 измењених фајлова са 1 додато и 1 уклоњено
  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) {