Allow streaming to work in background

This commit is contained in:
Webifi 2023-06-08 08:11:13 -05:00
parent 06470f7742
commit 5892e0f0b1
1 changed files with 1 additions and 0 deletions

View File

@ -398,6 +398,7 @@
})
fetchEventSource(getApiBase() + getEndpointCompletions(), {
...fetchOptions,
openWhenHidden: true,
onmessage (ev) {
// Remove updating indicator
updating = 1 // hide indicator, but still signal we're updating