MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / get_uiCurrentTabContent

Function get_uiCurrentTabContent

script.js:23–25  ·  view source on GitHub ↗

* Get the first currently visible top-level UI tab content (e.g. the div hosting the "txt2img" UI).

()

Source from the content-addressed store, hash-verified

21 * Get the first currently visible top-level UI tab content (e.g. the div hosting the "txt2img" UI).
22 */
23function get_uiCurrentTabContent() {
24 return gradioApp().querySelector('#tabs > .tabitem[id^=tab_]:not([style*="display: none"])');
25}
26
27var uiUpdateCallbacks = [];
28var uiAfterUpdateCallbacks = [];

Callers 3

script.jsFile · 0.85
all_gallery_buttonsFunction · 0.85
setup_gallery_lightboxFunction · 0.85

Calls 1

gradioAppFunction · 0.85

Tested by

no test coverage detected