From 35340b86db62e1e70b860b8663ea39e89043870a Mon Sep 17 00:00:00 2001 From: Sam Schloegel Date: Wed, 5 Jan 2022 20:25:42 -0500 Subject: [PATCH] Consolidate requires --- main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.js b/main.js index 7960f63..618e0f6 100644 --- a/main.js +++ b/main.js @@ -1,4 +1,4 @@ -const { app, BrowserWindow, Menu } = require('electron'); +const { app, BrowserWindow, Menu, ipcMain } = require('electron'); const path = require('path'); // Handle creating/removing shortcuts on Windows when installing/uninstalling. @@ -62,7 +62,6 @@ app.on('window-all-closed', () => { } }); -const { ipcMain } = require('electron'); ipcMain.on('enableDeviceDropdown', (event, arg) => { menu.getMenuItemById('devicePin').enabled = true; menu.getMenuItemById('deviceDelete').enabled = true;