mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 19:38:20 -07:00
21 lines
390 B
JavaScript
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); |