Skip to content
Snippets Groups Projects
Commit 76ec240a authored by echicken's avatar echicken :chicken:
Browse files

Relative path to eventsource, for webv4 installs not at docroot. (For CG Learn IIRC)

parent 3340aaea
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment