mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Some changes
This commit is contained in:
@@ -25,11 +25,14 @@ export class SqliteService {
|
||||
this.databaseConn();
|
||||
}
|
||||
|
||||
databaseConn() {
|
||||
databaseConn() {
|
||||
console.log('SQLDBConnect')
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
} else {
|
||||
console.log('SQLDBConnect22')
|
||||
this.platform.ready().then(async () => {
|
||||
await this.sqlite.create({
|
||||
console.log('SQLDBConnect33')
|
||||
this.sqlite.create({
|
||||
name: this.db_name,
|
||||
location: 'default'
|
||||
}).then(async (sqLite: SQLiteObject) => {
|
||||
@@ -126,6 +129,8 @@ export class SqliteService {
|
||||
.catch((error) => console.log(JSON.stringify(error)));
|
||||
})
|
||||
.catch((error) => console.log(JSON.stringify(error)));
|
||||
}).catch((error) => {
|
||||
console.log('Platform ready error', error)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user