瀏覽代碼

Merge pull request #3774 from PmcFizz/patch-4

fix example iframe don't alert
Henning Dieterichs 2 年之前
父節點
當前提交
2541de85e4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      website/src/website/pages/playground/Preview.tsx

+ 1 - 1
website/src/website/pages/playground/Preview.tsx

@@ -21,7 +21,7 @@ export class Preview
 				<iframe
 					className="full-iframe"
 					key={this.counter}
-					sandbox="allow-scripts"
+					sandbox="allow-scripts allow-modals"
 					frameBorder={0}
 					ref={this.handleIframe}
 					src="./playgroundRunner.html"