From 718bae29aba876eb9361052d29fb7792df079b80 Mon Sep 17 00:00:00 2001 From: Damillora Date: Fri, 7 Jul 2017 14:44:26 +0700 Subject: [PATCH] add checks for macOS --- dock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dock.js b/dock.js index e20a01e..0e11baf 100644 --- a/dock.js +++ b/dock.js @@ -182,5 +182,5 @@ module.exports.navitemplate = function(win){ module.exports.setdock = function(win) { const dockMenu = Menu.buildFromTemplate(module.exports.navitemplate(win)) - app.dock.setMenu(dockMenu); + if(process.platform == 'darwin' ) app.dock.setMenu(dockMenu); }