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:
commit
7591088982
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user