File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -575,19 +575,19 @@ export default class BackgroundGeolocation {
575
575
*/
576
576
static getLog ( success , failure ) {
577
577
if ( ! arguments . length ) {
578
- return NativeModule . getLog ( ) ;
578
+ return Logger . getLog ( ) ;
579
579
} else {
580
- NativeModule . getLog ( ) . then ( success ) . catch ( failure ) ;
580
+ Logger . getLog ( ) . then ( success ) . catch ( failure ) ;
581
581
}
582
582
}
583
583
/**
584
584
* Destroy all contents of log database
585
585
*/
586
586
static destroyLog ( success , failure ) {
587
587
if ( ! arguments . length ) {
588
- return NativeModule . destroyLog ( ) ;
588
+ return Logger . destroyLog ( ) ;
589
589
} else {
590
- NativeModule . destroyLog ( ) . then ( success ) . catch ( failure ) ;
590
+ Logger . destroyLog ( ) . then ( success ) . catch ( failure ) ;
591
591
}
592
592
}
593
593
/**
@@ -596,9 +596,9 @@ export default class BackgroundGeolocation {
596
596
static emailLog ( email , success , failure ) {
597
597
if ( typeof ( email ) != 'string' ) { throw TAG + "#emailLog requires an email address as 1st argument" }
598
598
if ( arguments . length == 1 ) {
599
- return NativeModule . emailLog ( email ) ;
599
+ return Logger . emailLog ( email ) ;
600
600
} else {
601
- NativeModule . emailLog ( email ) . then ( success ) . catch ( failure ) ;
601
+ Logger . emailLog ( email ) . then ( success ) . catch ( failure ) ;
602
602
}
603
603
}
604
604
/**
You can’t perform that action at this time.
0 commit comments