jellyfin-web/dashboard-ui/thirdparty/apiclient/network.js
2014-10-28 19:17:55 -04:00

21 lines
390 B
JavaScript

(function (globalScope, navigator) {
function networkStatus() {
var self = this;
self.isOnline = function () {
var online = navigator.onLine;
if (online == null) {
online = true;
}
return online;
};
}
globalScope.NetworkStatus = new networkStatus();
})(window, window.navigator);