Explorar o código

fixed sandbox attribute value

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
492667df1b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -477,7 +477,7 @@ this.SingleFileCore = (() => {
 						if (frameData.processor) {
 							const pageData = await frameData.processor.getPageData();
 							frameElement.setAttribute(frameElement.tagName == "OBJECT" ? "data" : "srcdoc", (frameElement.tagName == "OBJECT" ? "data:text/html," : "") + pageData.content);
-							frameElement.sandbox = true;
+							frameElement.setAttribute("sandbox", "");
 						}
 					}
 				} else {