aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/Tray.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js
index 2efe71a71..588fa75bf 100644
--- a/src/lib/Tray.js
+++ b/src/lib/Tray.js
@@ -1,4 +1,4 @@
1import { app, Tray, Menu, systemPreferences } from 'electron'; 1import { app, Tray, Menu, systemPreferences, nativeImage } from 'electron';
2import path from 'path'; 2import path from 'path';
3 3
4const FILE_EXTENSION = process.platform === 'win32' ? 'ico' : 'png'; 4const FILE_EXTENSION = process.platform === 'win32' ? 'ico' : 'png';
@@ -78,8 +78,8 @@ export default class TrayIcon {
78 platform = `${platform}-dark`; 78 platform = `${platform}-dark`;
79 } 79 }
80 80
81 return path.join( 81 return nativeImage.createFromPath(path.join(
82 __dirname, '..', 'assets', 'images', type, platform, `${asset}.${FILE_EXTENSION}`, 82 __dirname, '..', 'assets', 'images', type, platform, `${asset}.${FILE_EXTENSION}`),
83 ); 83 );
84 } 84 }
85} 85}