Skip to content
Browse files

Remove call to removed isReachable

  • Loading branch information...
1 parent 165a4a9 commit a780d8e6cf9e0dba59ef74f4fbb535d9a855ee08 Dave Johnson committed Aug 18, 2011
Showing with 5 additions and 8 deletions.
  1. +5 −8 assets/js/app.js
View
13 assets/js/app.js
@@ -4,14 +4,11 @@
run(function () {
// immediately invoked on first run
var init = (function () {
- navigator.network.isReachable("google.com", function(status) {
- var connectivity = (status.internetConnectionStatus || status.code || status);
- if (connectivity === NetworkStatus.NOT_REACHABLE) {
- alert("No internet connection - we won't be able to show you any maps");
- } else {
- alert("We can reach Google - get ready for some awesome maps!");
- }
- });
+ if (navigator.network.connection.type == Connection.NONE) {
+ alert("No internet connection - we won't be able to show you any maps");
+ } else {
+ alert("We can reach Google - get ready for some awesome maps!");
+ }
})();
// a little inline controller

0 comments on commit a780d8e

Please sign in to comment.
Something went wrong with that request. Please try again.