diff --git a/components/page.js b/components/page.js index fc8086b..1e5065b 100644 --- a/components/page.js +++ b/components/page.js @@ -16,7 +16,7 @@ const frameHtml = ` - + ${'<'}script type="module"> const frame = document.getElementsByTagName('iframe')[0] addEventListener('message', event => { @@ -90,7 +90,7 @@ export class Page extends HTMLElement { this.shadowRoot.appendChild(wrap) const tmp = document.createElement('iframe') if (this.csp !== undefined) { - tmp.sandbox = "allow-same-origin allow-scripts" + tmp.sandbox = "allow-same-origin allow-scripts allow-top-navigation" const url = new URL( '/-/frame', location.href )