support for acticve directory #261

This commit is contained in:
Jan Prochazka
2022-11-25 16:38:17 +01:00
parent 5e4c286427
commit 5ccd724166
5 changed files with 133 additions and 9 deletions

View File

@@ -16,6 +16,10 @@ export function disableApi() {
apiDisabled = true;
}
export function enableApi() {
apiDisabled = false;
}
function wantEventSource() {
if (!eventSource) {
eventSource = new EventSource(`${resolveApi()}/stream`);