Skip to content

Commit

Permalink
Remove call to removed isReachable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Johnson committed Aug 18, 2011
1 parent 165a4a9 commit a780d8e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a780d8e

Please sign in to comment.