Reset the server-code input box upon adding
This commit is contained in:
parent
95f1cee7b1
commit
3b4261f6fb
@ -335,6 +335,7 @@ function bindServerCodeButtons(){
|
|||||||
document.getElementById('settingsAddServerCode').onclick = () => {
|
document.getElementById('settingsAddServerCode').onclick = () => {
|
||||||
for(let ele of document.getElementsByClassName('settingsInputServerCodeVal')){
|
for(let ele of document.getElementsByClassName('settingsInputServerCodeVal')){
|
||||||
const code = ele.value
|
const code = ele.value
|
||||||
|
ele.value = ''
|
||||||
if(!ConfigManager.getServerCodes().includes(code) && code){
|
if(!ConfigManager.getServerCodes().includes(code) && code){
|
||||||
ConfigManager.getServerCodes().push(code)
|
ConfigManager.getServerCodes().push(code)
|
||||||
ConfigManager.save()
|
ConfigManager.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user