eslint fix prefer-arrow-callback errors

This commit is contained in:
Sam Schloegel
2022-01-03 14:48:13 -05:00
parent 83c46db661
commit d0dc2380ea
5 changed files with 40 additions and 49 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ const createWindow = () => {
app.whenReady().then(() => {
createWindow();
app.on('activate', function () {
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) createWindow();
});
});
@@ -78,7 +78,7 @@ ipcMain.on('disableSearchAll', (event, arg) => {
menu.getMenuItemById('deviceSearch').enabled = false;
});
ipcMain.on('setDevicePin', function (event, arg) {
ipcMain.on('setDevicePin', (event, arg) => {
menu.getMenuItemById('devicePin').checked = arg;
});