mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
remove promise bug
This commit is contained in:
@@ -80,19 +80,21 @@ export class AppComponent {
|
||||
try {
|
||||
this.sqliteservice.databaseConn();
|
||||
} catch (error) {
|
||||
// console.log("Error creating local database: ", error)
|
||||
console.error("Error creating local database: ", error)
|
||||
}
|
||||
}
|
||||
|
||||
this.storageservice.get('networkCheckStore').then((network) => {
|
||||
/* this.storageservice.get('networkCheckStore').then((network) => {
|
||||
if(network === 'online') {
|
||||
// console.log('Network app componente check', network)
|
||||
console.log('Network app componente check', network)
|
||||
this.backgroundservice.online()
|
||||
} else {
|
||||
// console.log('Network app componente check', network)
|
||||
console.log('Network app componente check', network)
|
||||
this.backgroundservice.offline();
|
||||
}
|
||||
})
|
||||
}).catch((error) => {
|
||||
console.error('storage initialize: ',error)
|
||||
}) */
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user