frame: allow loading local html/css/js files, add sandbox restrictions (#560)
This commit is contained in:
parent
0489ea3d4c
commit
563ba6ceb7
3 changed files with 7 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ class Frame extends Widget {
|
|||
|
||||
constructor(options) {
|
||||
|
||||
super({...options, html: html`<div class="frame"><iframe src=""></iframe></div>`})
|
||||
super({...options, html: html`<div class="frame"><iframe src="" sandbox="allow-scripts"></iframe></div>`})
|
||||
|
||||
if (!this.getProp('border')) this.container.classList.add('noborder')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue