From 831e52ea078abb459a07c20711b051e5c177297a Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 24 Apr 2017 14:59:22 +0200 Subject: [PATCH] Request view as dapp completed --- js/src/views/Signer/Embedded/embedded.css | 2 +- js/src/views/Signer/parity.js | 21 +++++++++++++++++++++ js/src/views/index.js | 1 - 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 js/src/views/Signer/parity.js diff --git a/js/src/views/Signer/Embedded/embedded.css b/js/src/views/Signer/Embedded/embedded.css index df9fd7f9e..9e103c34c 100644 --- a/js/src/views/Signer/Embedded/embedded.css +++ b/js/src/views/Signer/Embedded/embedded.css @@ -15,7 +15,7 @@ /* along with Parity. If not, see . */ -@import '../../_layout.css'; +@import '../_layout.css'; .info { padding: 1em 0; diff --git a/js/src/views/Signer/parity.js b/js/src/views/Signer/parity.js new file mode 100644 index 000000000..7118ce087 --- /dev/null +++ b/js/src/views/Signer/parity.js @@ -0,0 +1,21 @@ +// Copyright 2015-2017 Parity Technologies (UK) Ltd. +// This file is part of Parity. + +// Parity is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Parity is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Parity. If not, see . + +const api = window.parent.secureApi; + +export { + api +}; diff --git a/js/src/views/index.js b/js/src/views/index.js index 22ae869db..833d41ca0 100644 --- a/js/src/views/index.js +++ b/js/src/views/index.js @@ -21,6 +21,5 @@ export Contract from './Contract'; export Dapp from './Dapp'; export Dapps from './Dapps'; export ParityBar from './ParityBar'; -export Signer from './Signer'; export Wallet from './Wallet'; export Web from './Web';