Fix extensions block appearing where it shouldn't

This commit is contained in:
oobabooga 2023-08-17 11:37:14 -07:00
parent bdb6eb5734
commit 669c640eb4

View File

@ -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 = '';
}
}
});