Skip to content
Permalink
Browse files

fix(storage): localForage accepts arbitrary engines

  • Loading branch information...
jgw96 committed Sep 30, 2016
1 parent b45e23d commit 529831dab12fda1d211c310b0b827c9bd17a65df
Showing with 1 addition and 5 deletions.
  1. +1 −5 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);
}

}

0 comments on commit 529831d

Please sign in to comment.
You can’t perform that action at this time.