diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-02-19 19:31:35 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-02-21 14:18:21 +0100 |
| commit | 6ad3b7b22e21288e4fa6bea6342f8a63e18552ee (patch) | |
| tree | d1be7c8a127d02ab724df7b9b6a4eb8b4ec356e4 /gui/src/main/notification-controller.ts | |
| parent | 7081c2ffc2c2d228131588cf83d023a78a647c3a (diff) | |
| download | mullvadvpn-6ad3b7b22e21288e4fa6bea6342f8a63e18552ee.tar.xz mullvadvpn-6ad3b7b22e21288e4fa6bea6342f8a63e18552ee.zip | |
Fix linter problems caused by @typescript-eslint/no-floating-promises
Diffstat (limited to 'gui/src/main/notification-controller.ts')
| -rw-r--r-- | gui/src/main/notification-controller.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/src/main/notification-controller.ts b/gui/src/main/notification-controller.ts index 69c0f9ec30..4c542db3ea 100644 --- a/gui/src/main/notification-controller.ts +++ b/gui/src/main/notification-controller.ts @@ -6,6 +6,7 @@ import config from '../config.json'; import AccountExpiry from '../shared/account-expiry'; import { TunnelState } from '../shared/daemon-rpc-types'; import { messages } from '../shared/gettext'; +import consumePromise from '../shared/promise'; export default class NotificationController { private lastTunnelStateAnnouncement?: { body: string; notification: Notification }; @@ -140,7 +141,7 @@ export default class NotificationController { }); notification.on('click', () => { - shell.openExternal(config.links.download); + consumePromise(shell.openExternal(config.links.download)); }); this.scheduleNotification(notification); |
