From b29a25b46981ad4cd6eda4d6eb8c7568706f4233 Mon Sep 17 00:00:00 2001 From: winstef Date: Wed, 26 Jun 2019 19:11:00 +1000 Subject: [PATCH] added check for setIcon on macOS only --- src/main/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/index.js b/src/main/index.js index 211369e..775b4c0 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -169,7 +169,10 @@ app.on('ready', () => { mainWindow = createMainWindow() }); -app.dock.setIcon(nativeImage.createFromDataURL(require(`./assets/icons/1024x1024.png`))); +// Set dock icon on macOS +if (process.platform == 'darwin') { + app.dock.setIcon(nativeImage.createFromDataURL(require(`./assets/icons/1024x1024.png`))); +} const template = [ // { role: 'appMenu' }