This commit is contained in:
Jan Prochazka
2021-12-26 14:16:36 +01:00
parent 991b2fd3c1
commit 1ea9c23576
5 changed files with 5 additions and 3 deletions

View File

@@ -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 {