custom titlebar POC

This commit is contained in:
Jan Prochazka
2022-02-11 21:50:42 +01:00
parent ecb1affd8d
commit 19a43b6fbc
6 changed files with 150 additions and 3 deletions

View File

@@ -27,6 +27,10 @@ class ElectronApi {
await this.ipcRenderer.invoke('openExternal', url);
}
async isNativeMenu() {
await this.ipcRenderer.invoke('isNativeMenu');
}
async invoke(route, args) {
const res = await this.ipcRenderer.invoke(route, args);
return res;