Created
December 18, 2011 23:53
-
-
Save alexdioso/1494860 to your computer and use it in GitHub Desktop.
BrowserID without jQuery
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
document.getElementById('loginbutton').addEventListener( | |
"click", | |
function(event) { | |
navigator.id.getVerifiedEmail(function(assertion) { | |
if (assertion !== null) { | |
alert("logged in"); | |
} else { | |
alert("not logged in"); | |
} | |
}); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment