mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-04-13 00:00:10 +08:00
refractor(sqlite): optimize code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user