diff options
author | Akshit Kr Nagpal <akshitkrnagpal@gmail.com> | 2018-07-13 14:59:43 +0530 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2018-07-15 08:24:54 +0200 |
commit | fae2c069b38618ac9b3c9b5b121387e91fedecb2 (patch) | |
tree | 32f5f4b81b44b20532aee7c6b9ca003f81ece364 | |
parent | c09e66ea098d4bd8b02ecd28dc8e2be80d544882 (diff) |
Fix: Made host parsing compatible for servers deployed in subdirectory
-rw-r--r-- | app/features/conference/components/Conference.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/features/conference/components/Conference.js b/app/features/conference/components/Conference.js index 63b40df..11a4728 100644 --- a/app/features/conference/components/Conference.js +++ b/app/features/conference/components/Conference.js @@ -6,7 +6,6 @@ import React, { Component } from 'react'; import type { Dispatch } from 'redux'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; -import URL from 'url'; import { RemoteControl, @@ -218,7 +217,7 @@ class Conference extends Component<Props, State> { _onScriptLoad(parentNode: Object, roomName: string, serverURL: string) { const JitsiMeetExternalAPI = window.JitsiMeetExternalAPI; - const { host } = URL.parse(serverURL); + const host = serverURL.replace(/https?:\/\//, ''); const configOverwrite = { startWithAudioMuted: this.props._startWithAudioMuted, |