Don't clobber window.parity, extend

This commit is contained in:
Jaco Greeff 2017-09-01 13:03:00 +02:00
parent d0d8002b66
commit a1bde406de

View File

@ -71,10 +71,10 @@ function initWeb3 (ethereum) {
function initParity (ethereum) { function initParity (ethereum) {
const api = new Api(ethereum); const api = new Api(ethereum);
window.parity = { window.parity = Object.assign({}, window.parity || {}, {
Api, Api,
api api
}; });
} }
const ethereum = initProvider(); const ethereum = initProvider();