Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
lnyan
/
stablediffusion-infinity
like
818
Runtime error
App
Files
Files
Community
45
cf9f7d8
stablediffusion-infinity
/
js
/
mode.js
lnyan
Remove shadow root
9596438
about 2 years ago
raw
Copy download link
history
blame
Safe
195 Bytes
function
(
mode
){
let
app=
document
.
querySelector
(
"gradio-app"
);
let
frame=app.
querySelector
(
"#sdinfframe"
).
contentWindow
;
frame.
postMessage
([
"mode"
, mode],
"*"
);
return
mode;
}