TagSpaces is an offline, open source, document manager with tagging support
added handling for https and ports
Ilianbdda0cbfd6fd
diff --git a/data/web/web.api.js b/data/web/web.api.jsindex 63e8c2618..cfef4e8de 100644--- a/data/web/web.api.js+++ b/data/web/web.api.js@@ -16,8 +16,11 @@ define(function(require, exports, module) {function connectDav() {console.log("Connecting webdav...");- // TODO handle port and https- davClient = new nl.sara.webdav.Client(location.host);+ var useHTTPS = false;+ if(location.href.indexOf("https") === 0) {+ useHTTPS = true;+ }+ davClient = new nl.sara.webdav.Client(location.host, useHTTPS, location.port);}window.setTimeout(connectDav(), 2000);