main menu available in web version

This commit is contained in:
Jan Prochazka
2022-02-12 08:23:37 +01:00
parent 0c951b4659
commit db6d930d0c
8 changed files with 94 additions and 49 deletions

View File

@@ -1,8 +1,7 @@
class ElectronApi {
private ipcRenderer = getIpcRenderer();
constructor() {
}
constructor() {}
send(msg, args = null) {
this.ipcRenderer.send(msg, args);
@@ -28,7 +27,8 @@ class ElectronApi {
}
async isNativeMenu() {
await this.ipcRenderer.invoke('isNativeMenu');
const res = await this.ipcRenderer.invoke('isNativeMenu');
return res;
}
async invoke(route, args) {