david-mark-llc / jessie

Javascript cross-browser library builder enabling (real) progressive enhancement
http://jessie.herokuapp.com
39 stars 13 forks source link

Create isOnline #308

Open adamsilver opened 9 years ago

adamsilver commented 9 years ago

var isOnline;

if(isHostObjectProperty(global, "navigator") && isHostObjectProperty(global.navigator, "onLine")) { isOnline = function() { return global.navigator.onLine; }; }