mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix morph
This commit is contained in:
1 parent
827850646d
commit
9e89cb92a9
12 files changed
+34
-32
No files matched your search
@@ -1,5 +1,7 @@
|
||||
export default class extends HTMLElement {
|
||||
connectedCallback () {
|
||||
this.id = `menu-active-${Math.random().toString(32).split('.')[1]}`
|
||||
|
||||
this.querySelectorAll('a').forEach((link) => {
|
||||
if (document.location.pathname.startsWith(link.pathname) && !link.getAttribute('href').startsWith('http')) {
|
||||
link.classList.add('bg-base-300')
|
||||
|
||||
Reference in new issue
Block a user