File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,18 @@ export function onNavigatingTo(args: NavigatedData) {
49
49
50
50
async function showUpdates ( addListeners = false ) : Promise < void > {
51
51
const steps : Array < ( ) => Promise < any > > = [
52
+ ( ) => listenToActivityChanges ( addListeners ) ,
53
+ ( ) =>
54
+ printCurrentLocation ( ) . catch ( ( err ) => {
55
+ console . error ( "Could not print current location. Reason:" , err ) ;
56
+ } ) ,
52
57
( ) =>
53
58
printWifiScanResult ( ) . catch ( ( err ) => {
54
59
console . error (
55
60
"Could not print current nearby wifi scan. Reason:" ,
56
61
err
57
62
) ;
58
63
} ) ,
59
- ( ) =>
60
- printCurrentLocation ( ) . catch ( ( err ) => {
61
- console . error ( "Could not print current location. Reason:" , err ) ;
62
- } ) ,
63
64
( ) =>
64
65
printLocationUpdates ( )
65
66
. then ( ( subscription ) => ( locationSubscription = subscription ) )
@@ -78,7 +79,6 @@ async function showUpdates(addListeners = false): Promise<void> {
78
79
err
79
80
)
80
81
) ,
81
- ( ) => listenToActivityChanges ( addListeners ) ,
82
82
] ;
83
83
for ( const step of steps ) {
84
84
await step ( ) ;
You can’t perform that action at this time.
0 commit comments