connect updates
This commit is contained in:
parent
8cf3aba7e0
commit
132a02a48d
4 changed files with 151 additions and 108 deletions
21
dashboard-ui/thirdparty/apiclient/network.js
vendored
Normal file
21
dashboard-ui/thirdparty/apiclient/network.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
(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);
|
Loading…
Add table
Add a link
Reference in a new issue