Skip to content

Commit 9299f79

Browse files
committed
Make debug=0 URL param disable debug logs
1 parent e408830 commit 9299f79

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

components/app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,8 @@ export default class App extends Component {
323323
}
324324
if (queryParams.debug === "1") {
325325
this.debug = true;
326+
} else if (queryParams.debug === "0") {
327+
this.debug = false;
326328
}
327329

328330
if (window.location.hash) {

doc/url-params.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gamja settings can be overridden using URL query parameters:
77
replaced with a randomly generated value)
88
- `channels`: comma-separated list of channels to join (`#` needs to be escaped)
99
- `open`: [IRC URL] to open
10-
- `debug`: if set to 1, debug mode is enabled
10+
- `debug`: enable debug logs if set to `1`, disable debug logs if set to `0`
1111

1212
Alternatively, the channels can be set with the URL fragment (ie, by just
1313
appending the channel name to the gamja URL).

0 commit comments

Comments
 (0)