mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 11:56:00 +00:00
support for acticve directory #261
This commit is contained in:
@@ -16,6 +16,10 @@ export function disableApi() {
|
||||
apiDisabled = true;
|
||||
}
|
||||
|
||||
export function enableApi() {
|
||||
apiDisabled = false;
|
||||
}
|
||||
|
||||
function wantEventSource() {
|
||||
if (!eventSource) {
|
||||
eventSource = new EventSource(`${resolveApi()}/stream`);
|
||||
|
||||
Reference in New Issue
Block a user