MCPcopy
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / gradioApp

Function gradioApp

script.js:1–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1function gradioApp() {
2 const elems = document.getElementsByTagName('gradio-app');
3 const elem = elems.length == 0 ? document : elems[0];
4
5 if (elem !== document) {
6 elem.getElementById = function(id) {
7 return document.getElementById(id);
8 };
9 }
10 return elem.shadowRoot ? elem.shadowRoot : elem;
11}
12
13/**
14 * Get the currently selected top-level UI tab button (e.g. the button that says "Extras").

Callers 15

get_uiCurrentTabFunction · 0.85
get_uiCurrentTabContentFunction · 0.85
script.jsFile · 0.85
setupBracketCheckingFunction · 0.85
isMobileFunction · 0.85
reportWindowSizeFunction · 0.85
restoreImgRedMaskFunction · 0.85
zoom.jsFile · 0.85
applyZoomAndPanFunction · 0.85
resetZoomFunction · 0.85
adjustBrushSizeFunction · 0.85
fitToScreenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected