Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Do not require domain in SDK and ExternalAPI

Lyubo Marinov737419dbe8a1
diff --git a/react/features/base/util/uri.js b/react/features/base/util/uri.js
index 9227642034..a963bd56cf 100644
--- a/react/features/base/util/uri.js
+++ b/react/features/base/util/uri.js
@@ -378,18 +378,22 @@ export function urlObjectToString(o: Object): ?string {
//
// It may be host/hostname and pathname with the latter denoting the
// tenant.
- const { host, hostname, pathname: contextRoot, port }
- = parseStandardURIString(o.domain || o.host || o.hostname);
-
- // authority
- if (host) {
- url.host = host;
- url.hostname = hostname;
- url.port = port;
- }
+ const domain = o.domain || o.host || o.hostname;
+
+ if (domain) {
+ const { host, hostname, pathname: contextRoot, port }
+ = parseStandardURIString(domain);
- // pathname
- pathname === '/' && contextRoot !== '/' && (pathname = contextRoot);
+ // authority
+ if (host) {
+ url.host = host;
+ url.hostname = hostname;
+ url.port = port;
+ }
+
+ // pathname
+ pathname === '/' && contextRoot !== '/' && (pathname = contextRoot);
+ }
}
// pathname