ソースを参照

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"