Skip to content

Commit

Permalink
Live viewer: don't generate new history entries
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Dec 30, 2022
1 parent 34aebfb commit 1257208
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion live-viewer/live-viewer.mjs
Expand Up @@ -95,7 +95,11 @@ function getJsdomResult() {
}

function updateFragmentForSharing() {
location.hash = `url=${encodeToBase64(urlInput.value)}&base=${encodeToBase64(baseInput.value)}`;
history.replaceState(
undefined,
"",
`#url=${encodeToBase64(urlInput.value)}&base=${encodeToBase64(baseInput.value)}`
);
}

function setFromFragment() {
Expand Down

0 comments on commit 1257208

Please sign in to comment.