Skip to content

Commit

Permalink
feat(storage): add localForage supports method
Browse files Browse the repository at this point in the history
  • Loading branch information
jgw96 committed Oct 31, 2016
1 parent b49a604 commit dbc9ac4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,12 @@ export class Storage {
this._db.setDriver(this._db.engine);
}

/**
* Detect whether or not a storage engine is supported on the platform its running on
* @param engine engine you want to test support for
*/
supports(engine: string) {
this._db.supports(engine);
}

}

0 comments on commit dbc9ac4

Please sign in to comment.