commit
bcdabd8ca6
|
@ -4,6 +4,7 @@ var config = {
|
|||
hosts: {
|
||||
domain: 'jitsi-meet.example.com',
|
||||
//anonymousdomain: 'guest.example.com',
|
||||
// authdomain: 'jitsi-meet.example.com', // defaults to <domain>
|
||||
muc: 'conference.jitsi-meet.example.com', // FIXME: use XEP-0030
|
||||
bridge: 'jitsi-videobridge.jitsi-meet.example.com', // FIXME: use XEP-0030
|
||||
//jirecon: 'jirecon.jitsi-meet.example.com',
|
||||
|
|
10
index.html
10
index.html
|
@ -1,21 +1,21 @@
|
|||
<html itemscope itemtype="http://schema.org/Product" prefix="og: http://ogp.me/ns#" xmlns="http://www.w3.org/1999/html">
|
||||
<head>
|
||||
<!--#include virtual="title.html" -->
|
||||
<link rel="icon" type="image/png" href="/images/favicon.ico"/>
|
||||
<link rel="icon" type="image/png" href="/images/favicon.ico?v=1"/>
|
||||
<meta property="og:title" content="Jitsi Meet"/>
|
||||
<meta property="og:image" content="/images/jitsilogo.png"/>
|
||||
<meta property="og:image" content="/images/jitsilogo.png?v=1"/>
|
||||
<meta property="og:description" content="Join a WebRTC video conference powered by the Jitsi Videobridge"/>
|
||||
<meta description="Join a WebRTC video conference powered by the Jitsi Videobridge"/>
|
||||
<meta itemprop="name" content="Jitsi Meet"/>
|
||||
<meta itemprop="description" content="Join a WebRTC video conference powered by the Jitsi Videobridge"/>
|
||||
<meta itemprop="image" content="/images/jitsilogo.png"/>
|
||||
<meta itemprop="image" content="/images/jitsilogo.png?v=1"/>
|
||||
<link rel="stylesheet" href="css/all.css"/>
|
||||
<script>console.log("(TIME) index.html loaded:\t", window.performance.now());</script>
|
||||
<script src="https://api.callstats.io/static/callstats.min.js"></script>
|
||||
<script src="config.js?v=14"></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
|
||||
<script src="config.js?v=15"></script><!-- adapt to your needs, i.e. set hosts and bosh path -->
|
||||
<script src="interface_config.js?v=6"></script>
|
||||
<script src="libs/app.bundle.min.js?v=138"></script>
|
||||
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
|
||||
<link rel="stylesheet" href="css/all.css"/>
|
||||
<!--
|
||||
Link used for inline installation of chrome desktop streaming extension,
|
||||
is updated automatically from the code with the value defined in config.js -->
|
||||
|
|
|
@ -24,12 +24,18 @@ function Dialog(callback, obtainSession) {
|
|||
|
||||
var message = '<h2 data-i18n="dialog.passwordRequired">';
|
||||
message += APP.translation.translateString("dialog.passwordRequired");
|
||||
// ++__authdomain__
|
||||
message += '</h2>' +
|
||||
'<input name="username" type="text" ' +
|
||||
'placeholder="user@domain.net" autofocus>' +
|
||||
'<input name="password" ' +
|
||||
'<input name="username" type="text" ';
|
||||
if (config.hosts.authdomain) {
|
||||
message += 'placeholder="user identity" autofocus>';
|
||||
} else {
|
||||
message += 'placeholder="user@domain.net" autofocus>';
|
||||
}
|
||||
message += '<input name="password" ' +
|
||||
'type="password" data-i18n="[placeholder]dialog.userPassword"' +
|
||||
' placeholder="user password">';
|
||||
// --__authdomain__
|
||||
|
||||
var okButton = APP.translation.generateTranslationHTML("dialog.Ok");
|
||||
|
||||
|
@ -50,6 +56,16 @@ function Dialog(callback, obtainSession) {
|
|||
var password = f.password;
|
||||
if (jid && password) {
|
||||
stop = false;
|
||||
//++__authdomain__ complete jid by appending @<domain> if no @ was found in jid
|
||||
if (jid.indexOf("@") < 0) {
|
||||
jid = jid.concat('@');
|
||||
if (config.hosts.authdomain) {
|
||||
jid += config.hosts.authdomain;
|
||||
} else {
|
||||
jid += config.hosts.domain;
|
||||
}
|
||||
}
|
||||
// --__authdomain__
|
||||
connection.reset();
|
||||
connDialog.goToState('connecting');
|
||||
connection.connect(jid, password, stateHandler);
|
||||
|
@ -225,4 +241,4 @@ var LoginDialog = {
|
|||
}
|
||||
};
|
||||
|
||||
module.exports = LoginDialog;
|
||||
module.exports = LoginDialog;
|
||||
|
|
|
@ -18,9 +18,9 @@ var ConfigUtil = {
|
|||
* }
|
||||
*/
|
||||
overrideConfigJSON: function (config, interfaceConfig, newConfig) {
|
||||
for (var configRoot in newConfig) {
|
||||
|
||||
var confObj = null;
|
||||
var configRoot, key, value, confObj;
|
||||
for (configRoot in newConfig) {
|
||||
confObj = null;
|
||||
if (configRoot == "config") {
|
||||
confObj = config;
|
||||
} else if (configRoot == "interfaceConfig") {
|
||||
|
@ -29,15 +29,11 @@ var ConfigUtil = {
|
|||
continue;
|
||||
}
|
||||
|
||||
for (var key in newConfig[configRoot]) {
|
||||
var value = newConfig[configRoot][key];
|
||||
if (confObj[key] && typeof confObj[key] !== typeof value)
|
||||
{
|
||||
console.warn(
|
||||
"The type of " + key +
|
||||
" is wrong. That parameter won't be updated in: ",
|
||||
confObj);
|
||||
continue;
|
||||
for (key in newConfig[configRoot]) {
|
||||
value = newConfig[configRoot][key];
|
||||
if (confObj[key] && typeof confObj[key] !== typeof value) {
|
||||
console.log("Overriding a " + configRoot +
|
||||
" property with a property of different type.");
|
||||
}
|
||||
console.info("Overriding " + key + " with: " + value);
|
||||
confObj[key] = value;
|
||||
|
|
Loading…
Reference in New Issue