Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonV committed Apr 17, 2023
1 parent 08a72c8 commit 9150f83
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ const ready = () => (
} else {
subpy = require('child_process').spawn(`${path.join(path.dirname(__dirname), isDev ? 'extraResources' : '../extraResources','LedFx/LedFx.exe')}`, ['-p', '8888', '--no-tray']);
}
}
}

wind = integratedCore
? createWindow({ additionalArguments: ['integratedCore'] })
: createWindow();

require('@electron/remote/main').enable(wind.webContents);

if (isDev) {
await installExtension([REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS], {
loadExtensionOptions: { allowFileAccess: true },
Expand All @@ -163,8 +163,7 @@ const ready = () => (
contextMenu = Menu.buildFromTemplate([
{ label: 'Show', click: () => {
if (process.platform === 'darwin') app.dock.show()
wind.show()
}},
wind.show() }},
{ label: 'Minimize', click: () => wind.minimize() },
{ label: 'Minimize to tray', click: () => {
if (process.platform === 'darwin') app.dock.hide()
Expand Down Expand Up @@ -200,7 +199,7 @@ const ready = () => (
contextMenu = Menu.buildFromTemplate([
{ label: 'Show', click: () => {
if (process.platform === 'darwin') app.dock.show()
wind.show()
wind.show()
}},
{ label: 'Minimize', click: () => wind.minimize() },
{ label: 'Minimize to tray', click: () => {
Expand Down

0 comments on commit 9150f83

Please sign in to comment.