Merge pull request #26 from Dettomi/patch-1

Fix options, servers, profile buttons staying on screen
This commit is contained in:
gardenGnostic 2026-03-07 12:17:29 +01:00 committed by GitHub
commit 49526d4d9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -968,6 +968,7 @@ function toggleOptions(show) {
if (isProcessing) return;
const modal = document.getElementById('options-modal');
if (show) {
document.activeElement?.blur();
modal.style.display = 'flex';
modal.style.opacity = '1';
} else {
@ -981,6 +982,7 @@ async function toggleProfile(show) {
const modal = document.getElementById('profile-modal');
if (show) {
await updatePlaytimeDisplay();
document.activeElement?.blur();
modal.style.display = 'flex';
modal.style.opacity = '1';
} else {
@ -994,6 +996,7 @@ async function toggleServers(show) {
const modal = document.getElementById('servers-modal');
if (show) {
await loadServers();
document.activeElement?.blur();
modal.style.display = 'flex';
modal.style.opacity = '1';
} else {