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() {
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
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...in#Iterating_over_own_properties_only
for (let key in params) {