瀏覽代碼

Fixed webdav connection endpoint display issue

TC pushbot 5 4 年之前
父節點
當前提交
080c2e3dd1
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      web/SystemAO/disk/webdav.html

+ 5 - 1
web/SystemAO/disk/webdav.html

@@ -162,7 +162,11 @@
                 $("#vrootList").html("");
                 var port = (window.location.port);
                 if (window.location.port == ""){
-                    port = 80;
+                    if (location.protocol == 'https:') {
+                        port = 443;
+                    }else{
+                        port = 80;
+                    }
                 }
                 data.forEach(vroot => {
                     $("#vrootList").append(`<div class="item">