diff --git a/README.md b/README.md index cf75175..2370306 100644 --- a/README.md +++ b/README.md @@ -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" } ``` diff --git a/components/app.js b/components/app.js index 468157c..ae342e4 100644 --- a/components/app.js +++ b/components/app.js @@ -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) {