Skip to content

Instantly share code, notes, and snippets.

@videlais
Created August 21, 2014 19:57
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 videlais/ae0e4d09b7aa33dc75b0 to your computer and use it in GitHub Desktop.
Save videlais/ae0e4d09b7aa33dc75b0 to your computer and use it in GitHub Desktop.
Detecting Cordova using the FILE (not) protocol
var isCordovaApp = (document.URL.indexOf('http://') === -1 && document.URL.indexOf('https://') === -1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment