mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 15:33:47 +01:00
Make debug=0 URL param disable debug logs
This commit is contained in:
parent
e4088304bf
commit
9299f79bab
@ -323,6 +323,8 @@ export default class App extends Component {
|
|||||||
}
|
}
|
||||||
if (queryParams.debug === "1") {
|
if (queryParams.debug === "1") {
|
||||||
this.debug = true;
|
this.debug = true;
|
||||||
|
} else if (queryParams.debug === "0") {
|
||||||
|
this.debug = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (window.location.hash) {
|
if (window.location.hash) {
|
||||||
|
@ -7,7 +7,7 @@ gamja settings can be overridden using URL query parameters:
|
|||||||
replaced with a randomly generated value)
|
replaced with a randomly generated value)
|
||||||
- `channels`: comma-separated list of channels to join (`#` needs to be escaped)
|
- `channels`: comma-separated list of channels to join (`#` needs to be escaped)
|
||||||
- `open`: [IRC URL] to open
|
- `open`: [IRC URL] to open
|
||||||
- `debug`: if set to 1, debug mode is enabled
|
- `debug`: enable debug logs if set to `1`, disable debug logs if set to `0`
|
||||||
|
|
||||||
Alternatively, the channels can be set with the URL fragment (ie, by just
|
Alternatively, the channels can be set with the URL fragment (ie, by just
|
||||||
appending the channel name to the gamja URL).
|
appending the channel name to the gamja URL).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user