Skip to content

Commit

Permalink
fix(devmode): pass undefined if libs is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
JPSchellenberg committed Apr 10, 2021
1 parent d6035e5 commit b5e91a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ app.on('ready', async () => {
mainWindow,
{
devMode: app.commandLine.hasSwitch('dev'),
libraryDir: app.commandLine.getSwitchValue('libs')
libraryDir:
app.commandLine.getSwitchValue('libs') !== ''
? app.commandLine.getSwitchValue('libs')
: undefined
}
);
log.info('server booted');
Expand Down

0 comments on commit b5e91a7

Please sign in to comment.