mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
347 B
11 lines
347 B
export default class extends HTMLElement {
|
|
connectedCallback () {
|
|
this.querySelectorAll('a').forEach((link) => {
|
|
if (document.location.pathname.startsWith(link.pathname) && !link.getAttribute('href').startsWith('http')) {
|
|
link.classList.add('bg-base-300')
|
|
link.setAttribute('aria-current', 'page')
|
|
}
|
|
})
|
|
}
|
|
}
|