MCPcopy
hub / github.com/Akegarasu/ChatGLM-webui / gradioApp

Function gradioApp

scripts/main.js:8–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8function gradioApp() {
9 const gradioShadowRoot = document.getElementsByTagName('gradio-app')[0].shadowRoot
10 return !!gradioShadowRoot ? gradioShadowRoot : document;
11}
12
13function get_uiCurrentTab() {
14 return gradioApp().querySelector('.tabs button:not(.border-transparent)')

Callers 3

get_uiCurrentTabFunction · 0.85
get_uiCurrentTabContentFunction · 0.85
main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected