Skip to content

Commit

Permalink
Merge pull request #80 from unyt-org/jonasstrehle-patch-1
Browse files Browse the repository at this point in the history
Add allow-top-navigation to iframe com interface
  • Loading branch information
jonasstrehle authored Feb 10, 2024
2 parents bbbabab + 414bbd2 commit 0c8dba4
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 0c8dba4

Please sign in to comment.