Last active
June 22, 2022 20:48
-
-
Save bluejack/696f307e9b1a597ec19a9070e03dfe07 to your computer and use it in GitHub Desktop.
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 onetap(cb) { | |
function _handle_prompt_events(event) { | |
if (event.isNotDisplayed()) { | |
if (event.getNotDisplayedReason() === 'suppressed_by_user') { | |
window.localStorage.removeItem('gothic-id'); | |
cb('onetap-suppressed'); | |
} | |
} | |
if (event.isSkippedMoment()) { | |
cb('onetap-skipped'); | |
} | |
} | |
google.accounts.id.prompt(_handle_prompt_events); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment