Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
lnyan
/
stablediffusion-infinity
like
818
Runtime error
App
Files
Files
Community
45
cbdeb43
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;
}