diff options
| author | Kit La Touche <kit@transneptune.net> | 2024-11-29 14:33:52 -0500 |
|---|---|---|
| committer | Kit La Touche <kit@transneptune.net> | 2024-11-29 14:41:17 -0500 |
| commit | f8ecf97e66b999882bfa8750af111e9cf73ea89c (patch) | |
| tree | a1a257e022489d928f7245c7d10f94bf957161f9 /ui/lib | |
| parent | 9c4f37d3853dbc114c305dbbb45f2cb23cf8f4e0 (diff) | |
Prefer camelCase to snake_case in argument names
Even when they get mapped to snake_case searchParams.
Diffstat (limited to 'ui/lib')
| -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 |
