diff options
| -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); |
