add checks for macOS

This commit is contained in:
Damillora 2017-07-07 14:44:26 +07:00
parent ef12775d84
commit 718bae29ab
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}