Skip to content

Instantly share code, notes, and snippets.

@cyper85
Created March 17, 2016 22:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyper85/ea226df046187da70254 to your computer and use it in GitHub Desktop.
Save cyper85/ea226df046187da70254 to your computer and use it in GitHub Desktop.
<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