try both versions of appendChild

This commit is contained in:
AlUlkesh 2023-03-28 23:28:46 +02:00
parent 9ecf347133
commit 5a25826d84

View File

@ -251,8 +251,11 @@ document.addEventListener("DOMContentLoaded", function() {
modal.appendChild(modalNext)
gradioApp().body.appendChild(modal)
try {
gradioApp().appendChild(modal);
} catch (e) {
gradioApp().body.appendChild(modal);
}
document.body.appendChild(modal);