smooth things out

This commit is contained in:
prospect
2024-01-19 08:29:10 -05:00
parent 101fe8898f
commit d0f7696e16
2 changed files with 4 additions and 1 deletions

View File

@@ -103,6 +103,9 @@ class PageTransitions {
this.links.forEach(link => {
link.addEventListener('click', e => {
e.preventDefault();
if (link.href === window.location.href) {
return;
}
this.navControl = new _NavControl__WEBPACK_IMPORTED_MODULE_1__["default"]();
if (this.navControl.toggleMenuBtn.classList.contains('active')) {
this.navControl.toggleNavMenu();

File diff suppressed because one or more lines are too long