Skip to content

Instantly share code, notes, and snippets.

@videlais
Created Aug 21, 2014
Embed
What would you like to do?
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