ソースを参照

fixed sandbox attribute value

Gildas 7 年 前
コミット
492667df1b
1 ファイル変更1 行追加1 行削除
  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 {