Merge pull request #2290 from lol768/feature/join-alias-query-param

Add ?channels=x,y,z alias for ?join=x,y,z
This commit is contained in:
Jérémie Astori 2018-03-31 14:05:25 -04:00 committed by GitHub
commit 7591088982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,6 +410,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) {