Default version in config (#261)

* Update play_screen.js

* Update config.json
This commit is contained in:
Romain Beaumont 2021-12-24 21:20:08 +01:00 committed by GitHub
parent 29e54ee0c8
commit 8cbc95b5ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -2,5 +2,6 @@
"defaultHost": "95.111.249.143",
"defaultHostPort": 10000,
"defaultProxy": "",
"defaultProxyPort": 0
"defaultProxyPort": 0,
"defaultVersion": "1.17.1"
}

View file

@ -76,6 +76,7 @@ class PlayScreen extends LitElement {
this.serverport = config.defaultHostPort ?? 25565
this.proxy = config.defaultProxy
this.proxyport = !config.defaultProxy && !config.defaultProxyPort ? '' : config.defaultProxyPort ?? 443
this.version = config.defaultVersion
})
}