steveosoule
5/20/2013 - 8:39 PM

mobile-online-offline-checker.js

mobile-online-offline-checker.js

window.navigator.onLine
wwindow.addEventListener("online", function() {
  console.log("Visitor might be online.");
});

window.addEventListener("offline", function() {
  console.log("Visitor is definitely offline.");
});