From 3b4261f6fb6f9755bd16bba98b0f83cd83caea90 Mon Sep 17 00:00:00 2001 From: TheFlash787 Date: Thu, 13 Aug 2020 07:45:55 +0100 Subject: [PATCH] Reset the server-code input box upon adding --- app/assets/js/scripts/settings.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/js/scripts/settings.js b/app/assets/js/scripts/settings.js index 7a2a165..d0368d1 100644 --- a/app/assets/js/scripts/settings.js +++ b/app/assets/js/scripts/settings.js @@ -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()