diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-05-20 21:15:45 +0200 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-05-28 13:25:41 +0200 |
| commit | 34347408dd1c4dfb6ddeedde679bda16ba3a100c (patch) | |
| tree | dc52b069a25c1eb8c035e47aa629d84cab0d5b56 /desktop | |
| parent | fe3234533d23a3fddd75724411b78bbe3b6f347b (diff) | |
| download | mullvadvpn-34347408dd1c4dfb6ddeedde679bda16ba3a100c.tar.xz mullvadvpn-34347408dd1c4dfb6ddeedde679bda16ba3a100c.zip | |
Add method for dispatching app-openRoute messages
Diffstat (limited to 'desktop')
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/main/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/index.ts b/desktop/packages/mullvad-vpn/src/main/index.ts index 746286bb4f..eb5ca1ef70 100644 --- a/desktop/packages/mullvad-vpn/src/main/index.ts +++ b/desktop/packages/mullvad-vpn/src/main/index.ts @@ -30,6 +30,7 @@ import { SystemNotification, SystemNotificationCategory, } from '../shared/notifications/notification'; +import { RoutePath } from '../shared/routes'; import Account, { AccountDelegate, LocaleProvider } from './account'; import AppUpgrade from './app-upgrade'; import { getOpenAtLogin } from './autostart'; @@ -1133,6 +1134,9 @@ class ApplicationMain return shell.openExternal(url); } }; + public openRoute = (route: RoutePath) => { + void IpcMainEventChannel.app.notifyOpenRoute?.(route); + }; public showNotificationIcon = (value: boolean, reason?: string) => this.userInterface?.showNotificationIcon(value, reason); |
