Created
March 17, 2016 22:15
-
-
Save cyper85/ea226df046187da70254 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
<script src="/deviceAgitation.js"></script> | |
<script> | |
var eventHandler = function(event) { | |
if(typeof event.detail.axe !== "undefined") { | |
console.log(event.detail.axe); | |
} | |
} | |
window.addEventListener('x-deviceagitation', eventHandler , false); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment