mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-30 15:54:52 +02:00
feat: allow the jitsi-meet:// protocol in the URL box (#706)
* feat: allow the jitsi-meet:// protocol in the URL box Allow this so that when you send around links to the app and someone accidentally copy-pastes them into the URL box, things dont break.
This commit is contained in:
parent
5e31214142
commit
9601ef83f3
|
@ -168,6 +168,12 @@ class Conference extends Component<Props, State> {
|
|||
* @returns {void}
|
||||
*/
|
||||
_loadConference() {
|
||||
const appProtocolSurplus = `${config.appProtocolPrefix}://`;
|
||||
|
||||
// replace the custom url with https, otherwise new URL() raises 'Invalid URL'.
|
||||
if (this._conference.serverURL.startsWith(appProtocolSurplus)) {
|
||||
this._conference.serverURL = this._conference.serverURL.replace(appProtocolSurplus, 'https://');
|
||||
}
|
||||
const url = new URL(this._conference.room, this._conference.serverURL);
|
||||
const roomName = url.pathname.split('/').pop();
|
||||
const host = this._conference.serverURL.replace(/https?:\/\//, '');
|
||||
|
|
Loading…
Reference in a new issue