when refreshing cards in extra networks UI, do not discard user's custom resolution

This commit is contained in:
AUTOMATIC1111 2023-08-14 19:27:04 +03:00
parent f23e5ce2da
commit 5daf7983d1

View File

@ -332,7 +332,7 @@ function extraNetworksRefreshSingleCard(page, tabname, name) {
newDiv.innerHTML = data.html;
var newCard = newDiv.firstElementChild;
newCard.style = '';
newCard.style.display = '';
card.parentElement.insertBefore(newCard, card);
card.parentElement.removeChild(card);
}