|
|
@@ -808,6 +808,7 @@ export function isSharingEnabled(sharingFeature: string) {
|
|
808
|
808
|
* Sends a post request to an invite service.
|
|
809
|
809
|
*
|
|
810
|
810
|
* @param {Array} inviteItems - The list of the "sip" type items to invite.
|
|
|
811
|
+ * @param {URL} locationURL - The URL of the location.
|
|
811
|
812
|
* @param {string} sipInviteUrl - The invite service that generates the invitation.
|
|
812
|
813
|
* @param {string} jwt - The jwt token.
|
|
813
|
814
|
* @param {string} roomName - The name to the conference.
|
|
|
@@ -816,6 +817,7 @@ export function isSharingEnabled(sharingFeature: string) {
|
|
816
|
817
|
*/
|
|
817
|
818
|
export function inviteSipEndpoints( // eslint-disable-line max-params
|
|
818
|
819
|
inviteItems: Array<Object>,
|
|
|
820
|
+ locationURL: URL,
|
|
819
|
821
|
sipInviteUrl: string,
|
|
820
|
822
|
jwt: string,
|
|
821
|
823
|
roomName: string,
|
|
|
@@ -825,7 +827,7 @@ export function inviteSipEndpoints( // eslint-disable-line max-params
|
|
825
|
827
|
return Promise.resolve();
|
|
826
|
828
|
}
|
|
827
|
829
|
|
|
828
|
|
- const baseUrl = window.location.href.toLowerCase().replace(`/${roomName}`, '');
|
|
|
830
|
+ const baseUrl = locationURL.href.toLowerCase().replace(`/${roomName}`, '');
|
|
829
|
831
|
|
|
830
|
832
|
return fetch(
|
|
831
|
833
|
sipInviteUrl,
|