소스 검색

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">