Parcourir la source

Fix broken invite URL on IE10

IE 10 does not support "window.location.origin"
j8
paweldomas il y a 8 ans
Parent
révision
62fa4dffa8
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3
    2
      modules/UI/UI.js

+ 3
- 2
modules/UI/UI.js Voir le fichier

@@ -282,8 +282,9 @@ UI.initConference = function () {
282 282
     let id = APP.conference.getMyUserId();
283 283
 
284 284
     // Do not include query parameters in the invite URL
285
-    // "https://example.com" + "/SomeConference1245"
286
-    var inviteURL = window.location.origin + window.location.pathname;
285
+    // "https:" + "//" + "example.com:8888" + "/SomeConference1245"
286
+    var inviteURL = window.location.protocol + "//" +
287
+        window.location.host + window.location.pathname;
287 288
     Toolbar.updateRoomUrl(inviteURL);
288 289
     // Clean up the URL displayed by the browser
289 290
     if (window.history && typeof window.history.replaceState === 'function') {

Chargement…
Annuler
Enregistrer