()
| 1 | function 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"). |
no outgoing calls
no test coverage detected