File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export class QuickSqliteClient {
3333 static setDbVersion = ( version : number ) => ( this . dbVersion = version ) ;
3434
3535 // @ts -ignore
36- static isQuickSqliteV4 = sqlite . executeSql ? true : false ;
36+ static isQuickSqliteV4 = sqlite ? .executeSql ? true : false ;
3737
3838 // print if legacy version
3939 static openDB = ( ) => {
Original file line number Diff line number Diff line change @@ -63,8 +63,10 @@ export class DBSyncManager {
6363 this . client . on ( 'connection.changed' , async ( event ) => {
6464 if ( event . online ) {
6565 await this . syncAndExecutePendingTasks ( ) ;
66+ this . syncStatus = true ;
6667 this . listeners . forEach ( ( l ) => l ( true ) ) ;
6768 } else {
69+ this . syncStatus = false ;
6870 this . listeners . forEach ( ( l ) => l ( false ) ) ;
6971 }
7072 } ) ;
You can’t perform that action at this time.
0 commit comments