Spaces:
Runtime error
Runtime error
Remove shadow root
Browse files- js/mode.js +1 -3
js/mode.js
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
function(mode){
|
2 |
-
let app=document.querySelector("gradio-app")
|
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 |
}
|