developer console fixes

This commit is contained in:
Alex Turchyn
2023-08-05 21:39:59 +03:00
parent 644b142798
commit e75e7b18b4
8 changed files with 19 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
export default class extends HTMLElement {
connectedCallback () {
this.querySelectorAll('a').forEach((link) => {
if (document.location.pathname.startsWith(link.pathname)) {
if (document.location.pathname.startsWith(link.pathname) && !link.getAttribute('href').startsWith('http')) {
link.classList.add('bg-base-300')
}
})