use getSetting for API_ENTRY_POINT
authorRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 22 Nov 2020 10:17:40 +0000 (11:17 +0100)
committerRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 22 Nov 2020 10:17:40 +0000 (11:17 +0100)
public/trivabble.js

index a30090e9cb6e24e996296d74da4a755f87ccbedd..2d75605da82cb1064672501def9aca5e366ea67f 100644 (file)
             closeConnections();
             pollingServer = true;
 
-            eventSource = new EventSource(Conf.API_ENTRY_POINT + "/sse/" + JSON.stringify(cmdsWithContext()));
+            eventSource = new EventSource(getSetting("API_ENTRY_POINT") + "/sse/" + JSON.stringify(cmdsWithContext()));
             bindConnectionEvents(eventSource);
             return;
         }