Skip to content

Commit

Permalink
Preserve test case and camera when swapping apps
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Mar 29, 2024
1 parent 37ce811 commit 48b2384
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/AppSwitcher.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
function gotoPage() {
if (page != origPage) {
// TODO Preserve the camera and query parameters, at least
window.location.href = page;
// Preserve the camera and query parameters
// (When both are defined, the camera will be clobbered by RenderBoundary)
window.location.href = `${page}${window.location.search}${window.location.hash}`;
}
}
</script>
Expand Down

0 comments on commit 48b2384

Please sign in to comment.