File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/engine/web/src/lib Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,9 @@ export class IframePlugin extends PluginConnector {
1414 private origin : string
1515 private source : Window
1616 private url : string
17- private allowSame0rigin : boolean
1817
19- constructor ( public profile : IframeProfile , private allowSame0rigin : boolean = true ) {
18+ constructor ( public profile : IframeProfile ) {
2019 super ( profile )
21- this . allowSame0rigin = allowSame0rigin
2220 }
2321
2422 /** Implement "activate" of the ViewPlugin */
@@ -75,7 +73,7 @@ disconnect() {
7573 if ( this . iframe . contentWindow ) {
7674 throw new Error ( `${ this . name } plugin is already rendered` )
7775 }
78- this . iframe . setAttribute ( 'sandbox' , ` allow-popups allow-scripts ${ this . allowSame0rigin ? ' allow-same-origin' : '' } allow-forms allow-top-navigation` )
76+ this . iframe . setAttribute ( 'sandbox' , ' allow-popups allow-scripts allow-same-origin allow-forms allow-top-navigation' )
7977 this . iframe . setAttribute ( 'seamless' , 'true' )
8078 this . iframe . setAttribute ( 'id' , `plugin-${ this . name } ` )
8179 this . iframe . src = this . url
You can’t perform that action at this time.
0 commit comments