diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-11-23 17:09:54 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-11-25 17:04:12 +0100 |
| commit | 79f910fea33cabb32447f5e4628646cae08a5e91 (patch) | |
| tree | 42ba2074f0b5df0eef99b404d64c78f6163239cf /gui/src | |
| parent | 134a91ebd75fd557337dbe7c320d5984cf7a9644 (diff) | |
| download | mullvadvpn-79f910fea33cabb32447f5e4628646cae08a5e91.tar.xz mullvadvpn-79f910fea33cabb32447f5e4628646cae08a5e91.zip | |
Remove use of deprecated function openItem
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/renderer/containers/SupportPage.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/src/renderer/containers/SupportPage.tsx b/gui/src/renderer/containers/SupportPage.tsx index 7cb72b9c72..d77ec3e421 100644 --- a/gui/src/renderer/containers/SupportPage.tsx +++ b/gui/src/renderer/containers/SupportPage.tsx @@ -2,6 +2,7 @@ import { shell } from 'electron'; import { connect } from 'react-redux'; import { RouteComponentProps, withRouter } from 'react-router'; import { bindActionCreators } from 'redux'; +import consumePromise from '../../shared/promise'; import Support from '../components/Support'; import { collectProblemReport, sendProblemReport } from '../lib/problem-report'; import { IReduxState, ReduxDispatch } from '../redux/store'; @@ -23,7 +24,7 @@ const mapDispatchToProps = (dispatch: ReduxDispatch, props: RouteComponentProps) props.history.goBack(); }, viewLog(path: string) { - shell.openItem(path); + consumePromise(shell.openPath(path)); }, saveReportForm, clearReportForm, |
