Skip to content

Commit 8808391

Browse files
authored
Workaround bug in firefox. (#25918)
Without this change, each editor adds to the browser's history and you have to click the back button once for each editor
1 parent 888ced8 commit 8808391

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manual/examples/resources/editor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1711,7 +1711,9 @@ async function openInStackBlitz() {
17111711

17121712
g.setPosition = false;
17131713
const url = getSourceBlobFromEditor();
1714-
g.iframe.src = url;
1714+
// g.iframe.src = url;
1715+
// work around firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1828286
1716+
g.iframe.contentWindow.location.replace(url);
17151717

17161718
}
17171719

0 commit comments

Comments
 (0)