Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Feb 10, 2024
2 parents 81e3140 + 0c8dba4 commit e86d064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/communication-interfaces/window-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class WindowInterface extends CommunicationInterface {
// is parent document, has iframe
if (window instanceof HTMLIFrameElement) {
this.#isChild = false;
window.setAttribute("sandbox", "allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox")
window.setAttribute("sandbox", "allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation")
this.#windowOrigin = new URL(window.src).origin;
windowOriginURL = new URL(window.src);
this.logger.debug("initializing as parent window, child iframe origin: " + this.#windowOrigin)
Expand Down Expand Up @@ -237,4 +237,4 @@ export class WindowInterface extends CommunicationInterface {
})
}

}
}

0 comments on commit e86d064

Please sign in to comment.