Merge pull request #1006 from lc-soft/fix/comms-api-base-url

fix(comms): OpenFangAPI.baseUrl is undefined
This commit is contained in:
Jaber Jaber
2026-04-10 19:14:02 +03:00
committed by GitHub
+1 -1
View File
@@ -39,7 +39,7 @@ function commsPage() {
startSSE() {
if (this.sseSource) this.sseSource.close();
var self = this;
var url = OpenFangAPI.baseUrl + '/api/comms/events/stream';
var url = '/api/comms/events/stream';
if (OpenFangAPI.apiKey) url += '?token=' + encodeURIComponent(OpenFangAPI.apiKey);
this.sseSource = new EventSource(url);
this.sseSource.onmessage = function(ev) {