dynamic view : do not try to scroll to anchored track if no hash in url

This commit is contained in:
isUnknown 2025-06-05 16:12:26 +02:00
parent 5b98343e84
commit 9cd7195cd9

View file

@ -76,6 +76,8 @@ onBeforeMount(() => {
});
onMounted(() => {
if (route.hash.length === 0) return;
const selector = route.hash.replace('#', '#track--');
const targetBtn = document.querySelector(selector);
if (targetBtn) {