Created
October 14, 2014 11:00
-
-
Save benadamstyles/03631a67a7cfbcfd10cf to your computer and use it in GitHub Desktop.
Check internet connection on Cordova/Phonegap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.namespace.checkConnection=function() { | |
return navigator.connection.type!==Connection.NONE; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment