-
-
Save kypflug/c8453ca6f5d2cf1080d58b867f66bd78 to your computer and use it in GitHub Desktop.
Storage Access API: Requesting Access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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