mirror of
https://github.com/YunoHost/yunohost-portal.git
synced 2024-09-03 20:06:23 +02:00
9 lines
201 B
TypeScript
9 lines
201 B
TypeScript
|
export default defineNuxtRouteMiddleware((to) => {
|
||
|
if (!to.hash) {
|
||
|
// Auto select skip link on route change
|
||
|
nextTick(() => {
|
||
|
document.getElementById('skip-link')?.focus()
|
||
|
})
|
||
|
}
|
||
|
})
|