diff options
| author | anderklander <anderklander@gmail.com> | 2018-01-09 08:51:30 +0100 |
|---|---|---|
| committer | anderklander <anderklander@gmail.com> | 2018-01-15 14:05:32 +0100 |
| commit | 2f0fe3f2c65d24d3b6c697b1bfa23a985262ee2b (patch) | |
| tree | 95750b881230c0c4b78c203ec51ce320bfcaa307 | |
| parent | 86b694b004b2b9c95c68fbd4064ec83167da8c3a (diff) | |
| download | mullvadvpn-2f0fe3f2c65d24d3b6c697b1bfa23a985262ee2b.tar.xz mullvadvpn-2f0fe3f2c65d24d3b6c697b1bfa23a985262ee2b.zip | |
Clipboard from reactxp
Not able to start backend, so a little help with testing this would be good! Also good to test on specific platform i guess.
| -rw-r--r-- | app/redux/connection/actions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/redux/connection/actions.js b/app/redux/connection/actions.js index f2ebf2c7ba..aef4b85213 100644 --- a/app/redux/connection/actions.js +++ b/app/redux/connection/actions.js @@ -1,6 +1,6 @@ // @flow -import { clipboard } from 'electron'; +import { Clipboard } from 'reactxp'; import type { Backend } from '../../lib/backend'; import type { ReduxThunk } from '../store'; @@ -12,7 +12,7 @@ const copyIPAddress = (): ReduxThunk => { return (_, getState) => { const { connection: { clientIp } } = getState(); if(clientIp) { - clipboard.writeText(clientIp); + Clipboard.setText(clientIp); } }; }; |
