Sfoglia il codice sorgente

Fixed alanyeung glitch

Toby Chui 3 anni fa
parent
commit
ff6b01cf4a
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  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);