lnyan commited on
Commit
9596438
1 Parent(s): bf734d9

Remove shadow root

Browse files
Files changed (1) hide show
  1. js/mode.js +1 -3
js/mode.js CHANGED
@@ -1,8 +1,6 @@
1
  function(mode){
2
- let app=document.querySelector("gradio-app").shadowRoot;
3
- console.log(app);
4
  let frame=app.querySelector("#sdinfframe").contentWindow;
5
- console.log(frame);
6
  frame.postMessage(["mode", mode], "*");
7
  return mode;
8
  }
 
1
  function(mode){
2
+ let app=document.querySelector("gradio-app");
 
3
  let frame=app.querySelector("#sdinfframe").contentWindow;
 
4
  frame.postMessage(["mode", mode], "*");
5
  return mode;
6
  }