Explorar el Código

Fixed alanyeung glitch

Toby Chui hace 3 años
padre
commit
ff6b01cf4a
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      web/SystemAO/file_system/file_explorer.html

+ 5 - 1
web/SystemAO/file_system/file_explorer.html

@@ -3708,7 +3708,11 @@
 
                             //Continue to render QR Code and UI contents
                             $("#qrcode").html("");
-                            var shareURL = protocol + window.location.hostname + ":" + window.location.port + "/share/" + data.UUID;
+                            var port = ":" + window.location.port;
+                            if (window.location.port == ""){
+                                port = "";
+                            }
+                            var shareURL = protocol + window.location.hostname + port + "/share/" + data.UUID;
                             shareEditingUUID = data.UUID;
                             new QRCode(document.getElementById("qrcode"), shareURL);
                             $("#sharelink").text(shareURL);