summaryrefslogtreecommitdiff
path: root/ui/lib/apiServer.js
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-12-02 22:51:10 -0500
committerOwen Jacobson <owen@grimoire.ca>2024-12-02 22:51:10 -0500
commit4e3ad13aca163e733724b205c250bdb67cc56c29 (patch)
tree216842b15b55181a495af1643102718bbe041a38 /ui/lib/apiServer.js
parent5ce6c9f6277c43caf7413cce255af7bdc947e74c (diff)
parent0276d22c9ed49b035129cac99f68ada7fc1015d2 (diff)
Merge remote-tracking branch 'origin/wip/unreadish'
Diffstat (limited to 'ui/lib/apiServer.js')
-rw-r--r--ui/lib/apiServer.js4
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