2023-08-06 16:27:24 +02:00
|
|
|
export default defineNuxtRouteMiddleware((to) => {
|
|
|
|
if (!to.hash) {
|
|
|
|
// Auto select skip link on route change
|
|
|
|
nextTick(() => {
|
2023-11-22 15:48:25 +01:00
|
|
|
document.getElementById('focus-reset')?.focus()
|
2023-08-06 16:27:24 +02:00
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|