mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-15 03:15:01 -05:00
parent
37492e319b
commit
45c12fb684
2 changed files with 8 additions and 1 deletions
|
@ -46,7 +46,11 @@ This will start a development HTTP server for gamja. Connect to it and append
|
||||||
gamja settings can be overridden using URL query parameters:
|
gamja settings can be overridden using URL query parameters:
|
||||||
|
|
||||||
- `server`: path or URL to the WebSocket server
|
- `server`: path or URL to the WebSocket server
|
||||||
- `channels`: comma-separated list of channels to join
|
- `nick`: nickname
|
||||||
|
- `channels`: comma-separated list of channels to join (`#` needs to be escaped)
|
||||||
|
|
||||||
|
Alternatively, the channels can be set with the URL fragment (ie, by just
|
||||||
|
appending the channel name to the gamja URL).
|
||||||
|
|
||||||
## Configuration file
|
## Configuration file
|
||||||
|
|
||||||
|
|
|
@ -253,6 +253,9 @@ export default class App extends Component {
|
||||||
connectParams.serverURL = queryParams.server;
|
connectParams.serverURL = queryParams.server;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (queryParams.nick) {
|
||||||
|
connectParams.nick = queryParams.nick;
|
||||||
|
}
|
||||||
if (queryParams.channels) {
|
if (queryParams.channels) {
|
||||||
connectParams.autojoin = queryParams.channels.split(",");
|
connectParams.autojoin = queryParams.channels.split(",");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue