Skip to content

Instantly share code, notes, and snippets.

@miketaylr
Created August 10, 2015 19:37
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 miketaylr/3835cb5ba53315fcb502 to your computer and use it in GitHub Desktop.
Save miketaylr/3835cb5ba53315fcb502 to your computer and use it in GitHub Desktop.
Code controlling whether you can open Google docs app from your mobile browser.
function F(a) {
return -1 != E.indexOf(a)
}
function Pa() {
return F("Opera") || F("OPR")
}
function Qa() {
return (F("Chrome") || F("CriOS")) && !Pa() && !F("Edge")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment