From 75ac3450e6250fe35e681f9e8d0e834b279e52a5 Mon Sep 17 00:00:00 2001 From: cmdr2 <secondary.cmdr2@gmail.com> Date: Fri, 9 Sep 2022 21:31:34 +0530 Subject: [PATCH] Don't allow setting the channel while the server is still starting up --- ui/index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/index.html b/ui/index.html index 5204a698..27047e12 100644 --- a/ui/index.html +++ b/ui/index.html @@ -911,6 +911,13 @@ promptStrengthField.addEventListener('input', updatePromptStrength) updatePromptStrength() useBetaChannelField.addEventListener('click', async function(e) { + if (serverStatus !== 'online') { + logError('The server is still starting up..') + alert('The server is still starting up..') + e.preventDefault() + return false + } + let updateBranch = (this.checked ? 'beta' : 'main') try {