File size: 195 Bytes
5704551
9596438
3c14aef
 
5704551
 
1
2
3
4
5
6
function(mode){
    let app=document.querySelector("gradio-app");
    let frame=app.querySelector("#sdinfframe").contentWindow;
    frame.postMessage(["mode", mode], "*");
    return mode;
}