mirror of
https://github.com/localForage/localForage.git
synced 2026-01-25 14:44:26 +00:00
Merge pull request #262 from thgreasi/patch-1
docs(README): fix setDriver typo
This commit is contained in:
commit
331a05c97d
@ -170,13 +170,13 @@ alert(localforage.driver());
|
||||
|
||||
// If you're using modules, things load asynchronously, so you should use
|
||||
// callbacks or promises to ensure things have loaded.
|
||||
localforage.setDriver(LOCALSTORAGE, function() {
|
||||
localforage.setDriver(localforage.LOCALSTORAGE, function() {
|
||||
alert(localforage.driver());
|
||||
});
|
||||
=> 'localStorageWrapper'
|
||||
|
||||
// The promises version:
|
||||
localforage.setDriver(LOCALSTORAGE).then(function() {
|
||||
localforage.setDriver(localforage.LOCALSTORAGE).then(function() {
|
||||
alert(localforage.driver());
|
||||
});
|
||||
=> 'localStorageWrapper'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user