Skip to content

Instantly share code, notes, and snippets.

@sergiolopes
Created November 6, 2015 20:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergiolopes/fe4fc275fca6b3115a02 to your computer and use it in GitHub Desktop.
Save sergiolopes/fe4fc275fca6b3115a02 to your computer and use it in GitHub Desktop.
weinre webkit angular fix
<script>
function whackWebkitMatchesSelector() {
var oldMatches = Element.prototype.webkitMatchesSelector
function newMatches(selector) {
try {
return oldMatches.call(this, selector)
}
catch (err) {
return false
}
}
Element.prototype.webkitMatchesSelector = newMatches
}
whackWebkitMatchesSelector()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment