Skip to content

Commit

Permalink
feat(#103): remove query params on load
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Jul 22, 2024
1 parent 30562cf commit 9db8f11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ ws.addEventListener('message', (event) => {
break;
}
});

// remove query parameters from URL so that opening the same file will direct to
// the same browser window even if it was initially opened at a given position
history.replaceState(null, '', window.location.origin + window.location.pathname);

0 comments on commit 9db8f11

Please sign in to comment.