Explorar el Código

fix serving from a non-default host/port.

Lucas Stadler %!s(int64=12) %!d(string=hace) años
padre
commit
e2071fe772
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      js/babl/public/index.html

+ 1 - 1
js/babl/public/index.html

16
16
17
			setTimeout(loadHistory, 0);
17
			setTimeout(loadHistory, 0);
18
18
19
			var ws = new WebSocket("ws://localhost:8080");
19
			var ws = new WebSocket("ws://" + location.host);
20
20
21
			inputEl.onkeyup = function(ev) {
21
			inputEl.onkeyup = function(ev) {
22
				if (ev.keyCode == 13) {
22
				if (ev.keyCode == 13) {