2
0
mirror of https://github.com/frappe/books.git synced 2024-12-25 12:10:06 +00:00
books/src/menu.js
Faris Ansari 162b5e983f fix: Titlebar for Windows
- Add window-no-drag to areas that should be clickable
- Top left menu in Windows
- Enable window transparency only in Mac
2019-12-16 17:13:04 +05:30

12 lines
219 B
JavaScript

const { remote } = require('electron');
const { Menu } = remote;
function openMenu() {
const menu = Menu.getApplicationMenu();
menu.popup({ window: remote.getCurrentWindow() });
}
module.exports = {
openMenu
};