Skip to content

Commit

Permalink
Workaround bug in firefox. (#25918)
Browse files Browse the repository at this point in the history
Without this change, each editor adds to the browser's history
and you have to click the back button once for each editor
  • Loading branch information
greggman authored Apr 25, 2023
1 parent 888ced8 commit 8808391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manual/examples/resources/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,9 @@ async function openInStackBlitz() {

g.setPosition = false;
const url = getSourceBlobFromEditor();
g.iframe.src = url;
// g.iframe.src = url;
// work around firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1828286
g.iframe.contentWindow.location.replace(url);

}

Expand Down

0 comments on commit 8808391

Please sign in to comment.