Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const {Menu, MenuItem, Tray, dialog, BrowserWindow} = require('electron');
const openAboutWindow = require('electron-about-window').default;
const path = require('path');
exports.menu = false;
exports.win = false;
exports.menuItems = false;
exports.debug = false;
exports.MENU_ABOUT = 0;
exports.MENU_EDIT = 1;
exports.MENU_VIEW = 2;
exports.MENU_NAVIGATION = 3;
exports.MENU_FAVORITES = 4;
exports.MENU_WINDOW = 5;
exports.MENU_HELP = 6;
exports.startMenus = function(app, win, debug) {