Allow streaming to work in background
This commit is contained in:
parent
06470f7742
commit
5892e0f0b1
|
@ -398,6 +398,7 @@
|
||||||
})
|
})
|
||||||
fetchEventSource(getApiBase() + getEndpointCompletions(), {
|
fetchEventSource(getApiBase() + getEndpointCompletions(), {
|
||||||
...fetchOptions,
|
...fetchOptions,
|
||||||
|
openWhenHidden: true,
|
||||||
onmessage (ev) {
|
onmessage (ev) {
|
||||||
// Remove updating indicator
|
// Remove updating indicator
|
||||||
updating = 1 // hide indicator, but still signal we're updating
|
updating = 1 // hide indicator, but still signal we're updating
|
||||||
|
|
Loading…
Reference in New Issue