diff --git a/src/storage.ts b/src/storage.ts index 96dbfcf..99dbf1e 100644 --- a/src/storage.ts +++ b/src/storage.ts @@ -114,11 +114,7 @@ export class Storage { * @param engine engine allows you to specify a specific storage engine to use. Can be INDEXEDB, WEBSQL or LOCALSTORAGE */ setEngine(engine: string) { - if (engine !== 'INDEXEDB' || engine !== 'WEBSQL' || engine !== 'LOCALSTORAGE') { - console.error('Engine not recognized, engine choices are INDEXEDDB, WEBSQL and LOCALSTORAGE'); - } else { - this._db.setDriver(this._db.engine); - } + this._db.setDriver(this._db.engine); } }