diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-12-03 13:44:05 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-12-03 13:44:05 -0500 |
| commit | c6fbd21c27277dd76c4dbabf5f1bf24f58142a1a (patch) | |
| tree | 94392c1cafc88e91b14ebbb5a1e39eb86df41bc8 /ui/lib/apiServer.js | |
| parent | d89d64a1bd71bbb0f545818794f574fc80046c0f (diff) | |
| parent | 4e3ad13aca163e733724b205c250bdb67cc56c29 (diff) | |
Merge branch 'main' into wip/stylize
Diffstat (limited to 'ui/lib/apiServer.js')
| -rw-r--r-- | ui/lib/apiServer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/lib/apiServer.js b/ui/lib/apiServer.js index fee1a81..e52daff 100644 --- a/ui/lib/apiServer.js +++ b/ui/lib/apiServer.js @@ -54,9 +54,9 @@ export async function acceptInvite(inviteId, username, password) { return apiServer.post(`/invite/${inviteId}`, data); } -export function subscribeToEvents(resume_point) { +export function subscribeToEvents(resumePoint) { const eventsUrl = new URL('/api/events', window.location); - eventsUrl.searchParams.append('resume_point', resume_point); + eventsUrl.searchParams.append('resume_point', resumePoint); const evtSource = new EventSource(eventsUrl.toString()); // TODO: this should process all incoming events and store them. // TODO: eventually we'll need to handle expiring old info, so as not to use |
