diff --git a/components/app.js b/components/app.js index d045559..3c86f41 100644 --- a/components/app.js +++ b/components/app.js @@ -323,6 +323,8 @@ export default class App extends Component { } if (queryParams.debug === "1") { this.debug = true; + } else if (queryParams.debug === "0") { + this.debug = false; } if (window.location.hash) { diff --git a/doc/url-params.md b/doc/url-params.md index 58419f5..3a497f6 100644 --- a/doc/url-params.md +++ b/doc/url-params.md @@ -7,7 +7,7 @@ gamja settings can be overridden using URL query parameters: replaced with a randomly generated value) - `channels`: comma-separated list of channels to join (`#` needs to be escaped) - `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 appending the channel name to the gamja URL).