Skip to content

Instantly share code, notes, and snippets.

@kypflug

kypflug/saa-2.js Secret

Created Jul 8, 2020
Embed
What would you like to do?
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