فهرست منبع

Fixed File Explorer thumbnail rendered websocket bug

TC pushbot 5 4 سال پیش
والد
کامیت
e6064f44ff
1فایلهای تغییر یافته به همراه10 افزوده شده و 2 حذف شده
  1. 10 2
      web/SystemAO/file_system/file_explorer.html

+ 10 - 2
web/SystemAO/file_system/file_explorer.html

@@ -1832,7 +1832,11 @@
 
                 var port = window.location.port;
                 if (window.location.port == ""){
-                    port = "80";
+                    if (location.protocol !== 'https:') {
+                        port = "80";
+                    }else{
+                        port = "443";
+                    }
                 }
 
                 thumbRenderWebSocket = new WebSocket(protocol + window.location.hostname + ":" + port + "/system/file_system/handleCacheRender?folder=" + path);
@@ -4455,7 +4459,11 @@
 
                 var port = window.location.port;
                 if (window.location.port == ""){
-                    port = "80";
+                    if (location.protocol !== 'https:') {
+                        port = "80";
+                    }else{
+                        port = "443";
+                    }
                 }
 
                 let uploadDir = currentPath;