summaryrefslogtreecommitdiffhomepage
path: root/app/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/main.js')
-rw-r--r--app/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/main.js b/app/main.js
index b685a27bf9..2b056680c9 100644
--- a/app/main.js
+++ b/app/main.js
@@ -36,7 +36,7 @@ const appDelegate = {
_window: (null: ?BrowserWindow),
_tray: (null: ?Tray),
_logFileLocation: '',
- connectionFilePollInterval: (null: ?number),
+ connectionFilePollInterval: (null: ?IntervalID),
setup: () => {
// Override userData path, i.e on macOS: ~/Library/Application Support/MullvadVPN
@@ -420,6 +420,7 @@ const appDelegate = {
// setup NSEvent monitor to fix inconsistent window.blur
// see https://github.com/electron/electron/issues/8689
+ // $FlowFixMe: this module is only available on macOS
const { NSEventMonitor, NSEventMask } = require('nseventmonitor');
const trayIconManager = new TrayIconManager(tray, 'unsecured');
const macEventMonitor = new NSEventMonitor();