From faab6d013f04f2ea0fe5e578f729404cfda1b70b Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Thu, 9 Jul 2020 19:39:14 +1000 Subject: [PATCH] fix misidentification of mac as windows --- resources/tray.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/tray.js b/resources/tray.js index 649f061..14867c1 100644 --- a/resources/tray.js +++ b/resources/tray.js @@ -17,7 +17,7 @@ let tray; function enhancements() { const { Tray, Menu, nativeImage, app } = require('electron'), isMac = process.platform === 'darwin', - isWin = process.platform.includes('win'), + isWin = process.platform === 'win32', path = require('path'), store = require(path.join(__dirname, '..', 'store.js'))({ config: 'user-preferences',