File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
import 'regenerator-runtime/runtime' ;
2
2
import { utils } from 'near-api-js'
3
- import { Wallet } from './near- wallet' ;
3
+ import { Wallet } from './wallet' ;
4
4
5
5
const HELLO_ADDRESS = "hello.near-examples.testnet" ;
6
6
const GUEST_ADDRESS = "guestbook.near-examples.testnet" ;
@@ -10,14 +10,10 @@ const THIRTY_TGAS = '30000000000000';
10
10
const NO_DEPOSIT = '0' ;
11
11
12
12
// Setup on page load
13
- window . onload = async ( ) => {
14
- let signedAccountId = await wallet . startUp ( ( ) => { } ) ;
15
-
16
- if ( signedAccountId ) {
17
- signedInFlow ( signedAccountId ) ;
18
- } else {
19
- signedOutFlow ( ) ;
20
- }
13
+ window . onload = ( ) => {
14
+ wallet . startUp (
15
+ signedAccountId => signedAccountId ? signedInFlow ( signedAccountId ) : signedOutFlow ( )
16
+ ) ;
21
17
22
18
getGreetingAndMessages ( ) ;
23
19
} ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments