summaryrefslogtreecommitdiffhomepage
path: root/app/redux
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-01-09 08:51:30 +0100
committeranderklander <anderklander@gmail.com>2018-01-15 14:05:32 +0100
commit2f0fe3f2c65d24d3b6c697b1bfa23a985262ee2b (patch)
tree95750b881230c0c4b78c203ec51ce320bfcaa307 /app/redux
parent86b694b004b2b9c95c68fbd4064ec83167da8c3a (diff)
downloadmullvadvpn-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.
Diffstat (limited to 'app/redux')
-rw-r--r--app/redux/connection/actions.js4
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);
}
};
};