Skip to content

Commit

Permalink
No code repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
apolinario committed Dec 10, 2022
1 parent 8eb638c commit 37139d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function gradioApp(){
return !!document.getElementsByTagName('gradio-app')[0].shadowRoot ? document.getElementsByTagName('gradio-app')[0].shadowRoot : document;
function gradioApp() {
const gradioShadowRoot = document.getElementsByTagName('gradio-app')[0].shadowRoot
return !!gradioShadowRoot ? gradioShadowRoot : document;
}

function get_uiCurrentTab() {
Expand Down

0 comments on commit 37139d8

Please sign in to comment.