~emersion/gamja

ef19ac706cffb8d6f3519f2b8547d3520373f849 — Simon Ser 2 years ago a313363 custom-title
Add custom title config.json option

References: https://todo.sr.ht/~emersion/gamja/112
2 files changed, 7 insertions(+), 1 deletions(-)

M README.md
M components/app.js
M README.md => README.md +3 -1
@@ 106,7 106,9 @@ gamja default settings can be set using a `config.json` file at the root:
		// disable. Enabling PINGs can have an impact on client power usage and
		// should only be enabled if necessary.
		"ping": 60
	}
	},
	// Custom title (string).
	"title": "gamja IRC client"
}
```


M components/app.js => components/app.js +4 -0
@@ 192,6 192,10 @@ export default class App extends Component {
	handleConfig(config) {
		this.setState({ loading: false });

		if (typeof config.title === "string") {
			document.title = config.title;
		}

		let connectParams = { ...this.state.connectParams };

		if (config.server) {