X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=empires%2Fgame.js;h=d3d34949cdf87fe1875893939962b600f527b11d;hp=896db8fe598498aac9f735db3731ede7646b461f;hb=4d7bbd9fca8c718cd6a10ea7f7107974a5039138;hpb=2c56c00f5547b24e9f0d408fb02f21cf5e29a596 diff --git a/empires/game.js b/empires/game.js index 896db8f..d3d3494 100644 --- a/empires/game.js +++ b/empires/game.js @@ -57,7 +57,7 @@ function post_reset() { request.send(); } -const events = new EventSource("events"); +const events = new EventSource(window.location + "events"); events.onerror = function(event) { if (event.target.readyState === EventSource.CLOSED) {