Fix broken invite URL on IE10
IE 10 does not support "window.location.origin"
This commit is contained in:
parent
d3dd643a88
commit
62fa4dffa8
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue