mirror of
https://github.com/frappe/books.git
synced 2024-12-25 20:11:15 +00:00
12 lines
219 B
JavaScript
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
|
||
|
};
|