diff options
author | Leonid <logvinov.leon@gmail.com> | 2018-01-11 02:35:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 02:35:37 +0800 |
commit | de943c5f305402bc64a6b3273c59669faa62a60d (patch) | |
tree | 936eae17521984e5ccc28057973461e707322326 /packages/website/ts/blockchain.ts | |
parent | e6a783aff803c276392efec93571d24fc96feb6e (diff) | |
parent | e34b0af25133629ad4c177c4d7d5050bd6ac19b8 (diff) | |
download | dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.gz dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.bz2 dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.lz dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.xz dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.tar.zst dexon-sol-tools-de943c5f305402bc64a6b3273c59669faa62a60d.zip |
Merge pull request #307 from 0xProject/feature/web3-type-roots
Base tsconfig.json
Diffstat (limited to 'packages/website/ts/blockchain.ts')
-rw-r--r-- | packages/website/ts/blockchain.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 50cac6d29..1320fbeb9 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -66,12 +66,12 @@ export class Blockchain { private _cachedProvider: Web3.Provider; private _ledgerSubprovider: LedgerWalletSubprovider; private _zrxPollIntervalId: NodeJS.Timer; - private static async _onPageLoadAsync() { + private static async _onPageLoadAsync(): Promise<void> { if (document.readyState === 'complete') { return; // Already loaded } - return new Promise((resolve, reject) => { - window.onload = resolve; + return new Promise<void>((resolve, reject) => { + window.onload = () => resolve(); }); } private static _getNameGivenProvider(provider: Web3.Provider): string { |