Reset the server-code input box upon adding

This commit is contained in:
TheFlash787 2020-08-13 07:45:55 +01:00
parent 95f1cee7b1
commit 3b4261f6fb

View File

@ -335,6 +335,7 @@ function bindServerCodeButtons(){
document.getElementById('settingsAddServerCode').onclick = () => {
for(let ele of document.getElementsByClassName('settingsInputServerCodeVal')){
const code = ele.value
ele.value = ''
if(!ConfigManager.getServerCodes().includes(code) && code){
ConfigManager.getServerCodes().push(code)
ConfigManager.save()