mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-04-10 10:29:04 +02:00
Write challenge to iframe
This commit is contained in:
parent
a3bf77d355
commit
6f539a4102
@ -28,7 +28,7 @@
|
||||
background-color: rgba(0,0,0,0.8);
|
||||
}
|
||||
|
||||
.upload .iframe-challenge > div {
|
||||
.upload .iframe-challenge iframe {
|
||||
margin-left: 10vw;
|
||||
width: 80vw;
|
||||
height: 100vh;
|
||||
|
@ -169,9 +169,9 @@ export function FileUpload(props) {
|
||||
}
|
||||
|
||||
function getChallengeElement() {
|
||||
let elm = document.createElement("div");
|
||||
elm.innerHTML = challenge;
|
||||
return <div dangerouslySetInnerHTML={{ __html: elm.innerHTML }}/>;
|
||||
let elm = document.createElement("iframe");
|
||||
elm.contentWindow.document.write(challenge);
|
||||
return <div dangerouslySetInnerHTML={{ __html: elm.outerHTML }}/>;
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user