Skip to content

Commit b2a5ed8

Browse files
authored
fix: broken navigation when multiple viewer tabs are open (#876)
1 parent 68115f1 commit b2a5ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/setup/root.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function setupRoot() {
5454
const routePath = router.currentRoute.value.path
5555
if (!routePath.match(/^\/(\d+|presenter)\/?/))
5656
return
57-
if (+state.page !== +currentPage.value || +clicks.value !== +state.clicks) {
57+
if (state.lastUpdate?.type === 'presenter' && (+state.page !== +currentPage.value || +clicks.value !== +state.clicks)) {
5858
router.replace({
5959
path: getPath(state.page),
6060
query: {

0 commit comments

Comments
 (0)