Skip to content

Commit 281bf18

Browse files
committed
playground: fix history.replaceState shadowed by terminal's history global
1 parent 617f980 commit 281bf18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/playground.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ document.querySelectorAll('.playground-example').forEach(function(btn) {
107107
// Reflect the clicked example in the URL so it can be shared/bookmarked.
108108
var url = new URL(window.location.href);
109109
url.searchParams.set('cmd', cmd);
110-
history.replaceState(null, '', url);
110+
window.history.replaceState(null, '', url);
111111
document.getElementById('wasm-playground').scrollIntoView({ behavior: 'smooth' });
112112
if (window.runInTerminal) {
113113
window.runInTerminal(cmd);

0 commit comments

Comments
 (0)