|
@@ -1906,6 +1906,8 @@ const handleHomeworkSubmit = async () => {
|
|
|
try {
|
|
try {
|
|
|
const a = iframeBody.getElementsByTagName('img')
|
|
const a = iframeBody.getElementsByTagName('img')
|
|
|
const b = iframeBody.getElementsByTagName('video')
|
|
const b = iframeBody.getElementsByTagName('video')
|
|
|
|
|
+ iframeBody.style.width = '100vw'
|
|
|
|
|
+ iframeBody.style.height = '100vh'
|
|
|
for (let i = 0;i < a.length;i++) {
|
|
for (let i = 0;i < a.length;i++) {
|
|
|
a[i].crossOrigin = 'anonymous'
|
|
a[i].crossOrigin = 'anonymous'
|
|
|
}
|
|
}
|
|
@@ -2090,6 +2092,8 @@ const handleHomeworkSubmit = async () => {
|
|
|
iframeElement.contentWindow.document &&
|
|
iframeElement.contentWindow.document &&
|
|
|
iframeElement.contentWindow.document.body
|
|
iframeElement.contentWindow.document.body
|
|
|
) {
|
|
) {
|
|
|
|
|
+ iframeElement.contentWindow.document.body.style.width = '100vw'
|
|
|
|
|
+ iframeElement.contentWindow.document.body.style.height = '100vh'
|
|
|
try {
|
|
try {
|
|
|
isSubmitting.value = true
|
|
isSubmitting.value = true
|
|
|
|
|
|