Fix broken invite URL on IE10

IE 10 does not support "window.location.origin"
This commit is contained in:
paweldomas 2016-08-03 09:42:23 -05:00
parent d3dd643a88
commit 62fa4dffa8
1 changed files with 3 additions and 2 deletions

View File

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