mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
fixes
This commit is contained in:
@@ -17,6 +17,7 @@ function wantEventSource() {
|
||||
export async function apiCall(route: string, args: {} = undefined) {
|
||||
const electron = getElectron();
|
||||
if (electron) {
|
||||
// console.log('CALLING API', route.replace('/', '-'), JSON.stringify(args == null ? null : args));
|
||||
const resp = await electron.invoke(route.replace('/', '-'), args);
|
||||
return resp;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user