From 4d7bbd9fca8c718cd6a10ea7f7107974a5039138 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 21 May 2020 10:24:31 -0700 Subject: [PATCH] Use an absolute path for the events API Again, from a bug report where a user's browser was unable to fetch this resource. --- empires/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.43.0