未验证 提交 1075819b 编写于 作者: A apolinario 提交者: GitHub

Use shadowRoot if inside of an iframe and don't use it if outside

This makes sure it will work everywhere
上级 2eb5f103
function gradioApp(){
return document
return !!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document
}
function get_uiCurrentTab() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册