Don't clobber window.parity, extend
This commit is contained in:
parent
d0d8002b66
commit
a1bde406de
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user