mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-25 03:11:32 -08:00
try both versions of appendChild
This commit is contained in:
parent
9ecf347133
commit
5a25826d84
1 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue