mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(storage): wrong default order. #587
This commit is contained in:
@@ -42,12 +42,11 @@ export class SqlStorage extends StorageEngine {
|
||||
constructor(options) {
|
||||
super();
|
||||
|
||||
let dbOptions = util.defaults({
|
||||
let dbOptions = util.defaults(options, {
|
||||
name: DB_NAME,
|
||||
backupFlag: SqlStorage.BACKUP_LOCAL,
|
||||
existingDatabase: false
|
||||
}, options);
|
||||
|
||||
});
|
||||
|
||||
if(window.sqlitePlugin) {
|
||||
let location = this._getBackupLocation(dbOptions.backupFlag);
|
||||
|
||||
Reference in New Issue
Block a user