Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/saa-2.js Secret

Created July 8, 2020 16:06
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 kypflug/c8453ca6f5d2cf1080d58b867f66bd78 to your computer and use it in GitHub Desktop.
Save kypflug/c8453ca6f5d2cf1080d58b867f66bd78 to your computer and use it in GitHub Desktop.
Storage Access API: Requesting Access
function onLoginClicked() {
document.requestStorageAccess().then(() => {
// Access granted: Safe to access storage now.
}).catch(e => {
// Access denied
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment