Skip to content

Commit 695499b

Browse files
authored
Add click event to nav logo for homepage redirection
1 parent 826cb95 commit 695499b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎api.html‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@
487487
copy: `© ${new Date().getFullYear()} Figsh Digital · devtemDesign is open source`
488488
}
489489
});
490-
490+
document.querySelector(".nav-logo").onclick = () =>{
491+
location.href = "/";
492+
}
491493
// Inject API page content into hero shell after engine renders
492494
setTimeout(() => {
493495
const hero = document.querySelector('.hero');

0 commit comments

Comments
 (0)