Re-add extension load init (#2602)
This commit is contained in:
parent
142339b58a
commit
a95f73e90f
@ -45,7 +45,11 @@ interface ChainData {
|
||||
systemVersion: string;
|
||||
}
|
||||
|
||||
const injectedPromise = web3Enable('polkadot-js/apps');
|
||||
const injectedPromise = new Promise<InjectedExtension[]>((resolve): void => {
|
||||
window.addEventListener('load', (): void => {
|
||||
resolve(web3Enable('polkadot-js/apps'));
|
||||
});
|
||||
});
|
||||
|
||||
const DEFAULT_DECIMALS = registry.createType('u32', 12);
|
||||
const DEFAULT_SS58 = registry.createType('u32', addressDefaults.prefix);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user