jellyfin-web/dashboard-ui/thirdparty/apiclient/network.js

21 lines
390 B
JavaScript
Raw Normal View History

2014-10-28 16:17:55 -07:00
(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);