diff --git a/README.md b/README.md index e21b415..909e5a3 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,9 @@ gamja default settings can be set using a `config.json` file at the root: // require it, and "disabled" to never ask for a password. Defaults to // "optional". "auth": "optional", + // Don't display the login UI, immediately connect to the server + // (boolean). + "autoconnect": true, // Interval in seconds to send PING commands (number). Set to 0 to // disable. Enabling PINGs can have an impact on client power usage and // should only be enabled if necessary. diff --git a/components/app.js b/components/app.js index f665ea1..d4fbb84 100644 --- a/components/app.js +++ b/components/app.js @@ -201,6 +201,9 @@ export default class App extends Component { } else if (typeof config.server.autojoin === "string") { connectParams.autojoin = [config.server.autojoin]; } + if (typeof config.server.autoconnect === "boolean") { + connectParams.autoconnect = config.server.autoconnect; + } } let autoconnect = store.autoconnect.load();