Add ?channels=x,y,z alias for ?join=x,y,z

For backwards compat. with Iris and other systems.
This commit is contained in:
Adam Williams 2018-03-24 16:54:26 +00:00
parent 80c6e48b98
commit 950bad1d7a

View File

@ -581,6 +581,10 @@ $(function() {
$("#connect").one("show", function() { $("#connect").one("show", function() {
const params = URI(document.location.search).search(true); const params = URI(document.location.search).search(true);
if ("channels" in params) {
params.join = params.channels;
}
// Possible parameters: name, host, port, password, tls, nick, username, realname, join // Possible parameters: name, host, port, password, tls, nick, username, realname, join
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#Iterating_over_own_properties_only // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#Iterating_over_own_properties_only
for (let key in params) { for (let key in params) {