aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Tray.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-12-09 20:48:25 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-12-09 20:48:25 +0100
commit5d6164973e92fa8a3e3c18a0eb2e29494aea4f48 (patch)
tree382e6c672bbc0f7582b3b627b02111dcce902894 /src/lib/Tray.js
parentAdd React 16 didCatch/ErrorBoundary component (diff)
downloadferdium-app-5d6164973e92fa8a3e3c18a0eb2e29494aea4f48.tar.gz
ferdium-app-5d6164973e92fa8a3e3c18a0eb2e29494aea4f48.tar.zst
ferdium-app-5d6164973e92fa8a3e3c18a0eb2e29494aea4f48.zip
Fix linting issues
Diffstat (limited to 'src/lib/Tray.js')
-rw-r--r--src/lib/Tray.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js
index 588fa75bf..669b02709 100644
--- a/src/lib/Tray.js
+++ b/src/lib/Tray.js
@@ -1,4 +1,6 @@
1import { app, Tray, Menu, systemPreferences, nativeImage } from 'electron'; 1import {
2 app, Tray, Menu, systemPreferences, nativeImage,
3} from 'electron';
2import path from 'path'; 4import path from 'path';
3 5
4const FILE_EXTENSION = process.platform === 'win32' ? 'ico' : 'png'; 6const FILE_EXTENSION = process.platform === 'win32' ? 'ico' : 'png';
@@ -7,7 +9,9 @@ const INDICATOR_TRAY_UNREAD = 'tray-unread';
7 9
8export default class TrayIcon { 10export default class TrayIcon {
9 trayIcon = null; 11 trayIcon = null;
12
10 indicator = 0; 13 indicator = 0;
14
11 themeChangeSubscriberId = null; 15 themeChangeSubscriberId = null;
12 16
13 show() { 17 show() {
@@ -79,7 +83,7 @@ export default class TrayIcon {
79 } 83 }
80 84
81 return nativeImage.createFromPath(path.join( 85 return nativeImage.createFromPath(path.join(
82 __dirname, '..', 'assets', 'images', type, platform, `${asset}.${FILE_EXTENSION}`), 86 __dirname, '..', 'assets', 'images', type, platform, `${asset}.${FILE_EXTENSION}`,
83 ); 87 ));
84 } 88 }
85} 89}