Skip to content

Instantly share code, notes, and snippets.

@brecert
Last active May 18, 2022 21:55
Show Gist options
  • Save brecert/65a7443f32535acef4e58ed1d4aebba8 to your computer and use it in GitHub Desktop.
Save brecert/65a7443f32535acef4e58ed1d4aebba8 to your computer and use it in GitHub Desktop.
revolt2
import('https://jspm.dev/localforage')
.then(({ default: localForage }) => {
localForage.getItem('auth')
.then(JSON.stringify)
.then(alert)
})
import('https://jspm.dev/localforage')
.then(({ default: localForage }) => {
localForage.setItem('auth', JSON.parse(prompt('Enter auth here')))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment