|
@@ -53,7 +53,15 @@ function init() {
|
53
|
53
|
RTC.addStreamListener(maybeDoJoin, StreamEventTypes.EVENT_TYPE_LOCAL_CREATED);
|
54
|
54
|
RTC.start();
|
55
|
55
|
|
56
|
|
- var jid = document.getElementById('jid').value || config.hosts.anonymousdomain || config.hosts.domain || window.location.hostname;
|
|
56
|
+ var configDomain = config.hosts.anonymousdomain || config.hosts.domain;
|
|
57
|
+
|
|
58
|
+ // Force authenticated domain if room is appended with '?login=true'
|
|
59
|
+ if (config.hosts.anonymousdomain &&
|
|
60
|
+ window.location.search.indexOf("login=true") !== -1) {
|
|
61
|
+ configDomain = config.hosts.domain;
|
|
62
|
+ }
|
|
63
|
+
|
|
64
|
+ var jid = document.getElementById('jid').value || configDomain || window.location.hostname;
|
57
|
65
|
connect(jid);
|
58
|
66
|
}
|
59
|
67
|
|