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

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

parent 3c64ee1a
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ window.onload = function () { ...@@ -134,7 +134,7 @@ window.onload = function () {
return a + (i == 0 ? '?' : '&') + _sbbs_events[c].qs; 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) { Object.keys(_sbbs_events).forEach(function (e) {
es.addEventListener(e, _sbbs_events[e].callback); es.addEventListener(e, _sbbs_events[e].callback);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment