From 669c640eb49ba8c31d7472b51a50731c5703a65f Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 17 Aug 2023 11:37:14 -0700 Subject: [PATCH] Fix extensions block appearing where it shouldn't --- extensions/gallery/script.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/extensions/gallery/script.js b/extensions/gallery/script.js index 4203f0dd..b80785b6 100644 --- a/extensions/gallery/script.js +++ b/extensions/gallery/script.js @@ -15,9 +15,7 @@ main_parent.addEventListener('click', function(e) { if (chat_visible) { if (chat_mode_visible) { gallery_element.style.display = 'block'; - if (gallery_only) { - extensions_block.style.display = ''; - } + extensions_block.style.display = ''; } else { gallery_element.style.display = 'none'; extensions_block.style.display = 'none'; @@ -27,8 +25,5 @@ main_parent.addEventListener('click', function(e) { if (gallery_only) { extensions_block.style.display = 'none'; } - else { - extensions_block.style.display = ''; - } } });