Remove public node hacks
This commit is contained in:
parent
965e8ae74e
commit
1b7c90e9e1
@ -188,16 +188,6 @@ export default class LocalAccountsMiddleware extends Middleware {
|
|||||||
return [];
|
return [];
|
||||||
});
|
});
|
||||||
|
|
||||||
register('parity_wsUrl', () => {
|
|
||||||
// This is a hack, will be replaced by a `hostname` setting on the node itself
|
|
||||||
return `${window.location.hostname}:8546`;
|
|
||||||
});
|
|
||||||
|
|
||||||
register('parity_dappsUrl', () => {
|
|
||||||
// This is a hack, will be replaced by a `hostname` setting on the node itself
|
|
||||||
return `${window.location.hostname}:8545`;
|
|
||||||
});
|
|
||||||
|
|
||||||
register('parity_hashContent', () => {
|
register('parity_hashContent', () => {
|
||||||
throw new Error('Functionality unavailable on a public wallet.');
|
throw new Error('Functionality unavailable on a public wallet.');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user