Skip to content

Commit 009f11f

Browse files
committed
Fix - Undefined dock on linux/windows
1 parent 802a604 commit 009f11f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public/electron.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ function createWindow() {
2929
// show it once the app has been displayed
3030
// @link https://github.com/electron/electron/issues/10078
3131
// @fixme hack to make it show on full-screen windows
32-
app.dock.hide();
32+
app.dock && app.dock.hide();
3333
mainWindow.show();
34-
app.dock.show();
34+
app.dock && app.dock.show();
3535

3636
// Set the window to be always on top
3737
mainWindow.setAlwaysOnTop(true);

0 commit comments

Comments
 (0)