mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
refractor(sqlite): optimize code
This commit is contained in:
parent
dd250a6d17
commit
8ab1d13fb3
@ -59,8 +59,7 @@ export class SQLite {
|
||||
constructor() { }
|
||||
|
||||
static openDatabase(config: any): Promise<SQLite> {
|
||||
let db = new SQLite();
|
||||
return db.openDatabase(config);
|
||||
return new SQLite().openDatabase(config);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user