Unverified Commit 7cea280a authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub
Browse files

Merge pull request #5447 from apolinario/patch-1

Fix WebUI not working inside of iframes
parents 94a35ca9 37139d8a
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
function gradioApp() {
    return document.getElementsByTagName('gradio-app')[0].shadowRoot;
    const gradioShadowRoot = document.getElementsByTagName('gradio-app')[0].shadowRoot
    return !!gradioShadowRoot ? gradioShadowRoot : document;
}

function get_uiCurrentTab() {