Skip to content

Commit cc541af

Browse files
authored
Only hide dock icon when there's a dock (#4)
1 parent 86ed008 commit cc541af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ipcMain.on('removePermission', (e, host, permission) => store.removePermission(h
1616

1717
app.on('ready', () => {
1818
windows.tray()
19-
process.env.TRAY_ONLY ? app.dock.hide() : windows.create()
19+
if (app.dock) app.dock.hide()
2020
})
2121

2222
app.on('activate', () => {

0 commit comments

Comments
 (0)