diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-08-18 13:46:59 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-08-18 13:46:59 +0200 |
| commit | ce5fd274c8cfc5ecd95e0015944a95f56eb5329f (patch) | |
| tree | 1b1a85ed8bf03cda86fdb4781f52d9edf467fb4c | |
| parent | 3f4430ea27c56efdc524276a6c4e02e8080b52d4 (diff) | |
| parent | 5b9fc619ab0ddd59e43989141d4ee68e9398d417 (diff) | |
| download | mullvadvpn-ce5fd274c8cfc5ecd95e0015944a95f56eb5329f.tar.xz mullvadvpn-ce5fd274c8cfc5ecd95e0015944a95f56eb5329f.zip | |
Merge branch 'fix-openurl-of-undefined'
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | gui/src/renderer/app.tsx | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index dcbb34ae9c..036e26c16e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ Line wrap the file at 100 chars. Th - Fix incorrect WireGuard relay filtering when exit and entry locations overlap. - Fix wrong translations when switching to/from unpinned window after changing language in the desktop app. +- Fix in-app notification button not working for some notifications. #### Linux - Make offline monitor aware of routing table changes. diff --git a/gui/src/renderer/app.tsx b/gui/src/renderer/app.tsx index 49c4129112..277227eac7 100644 --- a/gui/src/renderer/app.tsx +++ b/gui/src/renderer/app.tsx @@ -361,7 +361,7 @@ export default class AppRenderer { return IpcRendererEventChannel.accountHistory.clear(); } - public async openLinkWithAuth(link: string): Promise<void> { + public openLinkWithAuth = async (link: string): Promise<void> => { let token = ''; try { token = await IpcRendererEventChannel.account.getWwwAuthToken(); @@ -369,7 +369,7 @@ export default class AppRenderer { log.error(`Failed to get the WWW auth token: ${e.message}`); } void this.openUrl(`${link}?token=${token}`); - } + }; public async setAllowLan(allowLan: boolean) { const actions = this.reduxActions; |
