Skip to content

Commit 2ef5704

Browse files
authored
Merge pull request #1006 from lc-soft/fix/comms-api-base-url
fix(comms): OpenFangAPI.baseUrl is undefined
2 parents 747314b + 09ec6f5 commit 2ef5704

File tree

1 file changed

+1
-1
lines changed
  • crates/openfang-api/static/js/pages

1 file changed

+1
-1
lines changed

crates/openfang-api/static/js/pages/comms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function commsPage() {
3939
startSSE() {
4040
if (this.sseSource) this.sseSource.close();
4141
var self = this;
42-
var url = OpenFangAPI.baseUrl + '/api/comms/events/stream';
42+
var url = '/api/comms/events/stream';
4343
if (OpenFangAPI.apiKey) url += '?token=' + encodeURIComponent(OpenFangAPI.apiKey);
4444
this.sseSource = new EventSource(url);
4545
this.sseSource.onmessage = function(ev) {

0 commit comments

Comments
 (0)