From 0ddc9a7ec39f8a8e882e7852808039d9fe6d2d35 Mon Sep 17 00:00:00 2001 From: echicken <echicken@bbs.electronicchicken.com> Date: Wed, 27 Jan 2021 14:01:56 -0500 Subject: [PATCH] Relative path to eventsource, for webv4 installs not at docroot. (For CG Learn IIRC) --- webv4/root/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webv4/root/js/common.js b/webv4/root/js/common.js index b922962687..aa4ff8fa7d 100644 --- a/webv4/root/js/common.js +++ b/webv4/root/js/common.js @@ -134,7 +134,7 @@ window.onload = function () { return a + (i == 0 ? '?' : '&') + _sbbs_events[c].qs; }, ''); - const es = new EventSource('/api/events.ssjs' + qs); + const es = new EventSource('./api/events.ssjs' + qs); Object.keys(_sbbs_events).forEach(function (e) { es.addEventListener(e, _sbbs_events[e].callback); }); -- GitLab