Skip to content

Instantly share code, notes, and snippets.

@matthewconstantine
Created September 16, 2013 23:48
Show Gist options
  • Save matthewconstantine/6588247 to your computer and use it in GitHub Desktop.
Save matthewconstantine/6588247 to your computer and use it in GitHub Desktop.
var getBrowserPrefix = memoize(function() {
return keys( document.defaultView.getComputedStyle(document.body, "") )
.join("")
.match(/(?:-(moz|webkit|ms|khtml)-)/);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment