fix(comms): OpenFangAPI.baseUrl is undefined

This commit is contained in:
Liu
2026-04-07 17:07:17 +08:00
parent 07963779be
commit 09ec6f5549
+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) {