Skip to content

Instantly share code, notes, and snippets.

@totya24
Created July 28, 2015 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save totya24/a7711da0dd8bc1aa3787 to your computer and use it in GitHub Desktop.
Save totya24/a7711da0dd8bc1aa3787 to your computer and use it in GitHub Desktop.
localForage example
// localStorage használatával
localStorage.setItem('key', JSON.stringify('value'));
doSomethingElse();
// localForage esetén használhatunk callback függvényt:
localforage.setItem('key', 'value', doSomethingElse);
// vagy "promises" megoldást:
localforage.setItem('key', 'value').then(doSomethingElse);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment