TagSpaces is an offline, open source, document manager with tagging support
changing the online/offline check
uggrock5be5cda48314
diff --git a/data/web/web.api.js b/data/web/web.api.jsindex cbb27f101..02fa7c03a 100644--- a/data/web/web.api.js+++ b/data/web/web.api.js@@ -17,9 +17,24 @@ define(function(require, exports, module) {var TSPOSTIO = require("tspostioapi");require("webdav");- require("offlinelib");+ //require("offlinelib");- // Offline notification+ window.addEventListener('offline', showLostConnectionDialog);+ window.addEventListener('online', function() {+ $('#dialogLostConnection').modal('hide');+ });++ function showLostConnectionDialog() {+ $('#dialogLostConnection').modal({+ backdrop: 'static',+ show: true,+ });+ $('#dialogLostConnection').draggable({+ handle: ".modal-header"+ });+ }++/* // Offline notificationOffline.options = {checkOnLoad: true,//interceptRequests: true,@@ -33,20 +48,10 @@ define(function(require, exports, module) {Offline.check();- function showLostConnectionDialog() {- $('#dialogLostConnection').modal({- backdrop: 'static',- show: true,- });- $('#dialogLostConnection').draggable({- handle: ".modal-header"- });- }-Offline.on('confirmed-up', function() {$('#dialogLostConnection').modal('hide');});- Offline.on('confirmed-down', showLostConnectionDialog);+ Offline.on('confirmed-down', showLostConnectionDialog);*//* var run = function() {if (Offline.state === 'up') {