smooth things out
This commit is contained in:
@@ -103,6 +103,9 @@ class PageTransitions {
|
|||||||
this.links.forEach(link => {
|
this.links.forEach(link => {
|
||||||
link.addEventListener('click', e => {
|
link.addEventListener('click', e => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
if (link.href === window.location.href) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.navControl = new _NavControl__WEBPACK_IMPORTED_MODULE_1__["default"]();
|
this.navControl = new _NavControl__WEBPACK_IMPORTED_MODULE_1__["default"]();
|
||||||
if (this.navControl.toggleMenuBtn.classList.contains('active')) {
|
if (this.navControl.toggleMenuBtn.classList.contains('active')) {
|
||||||
this.navControl.toggleNavMenu();
|
this.navControl.toggleNavMenu();
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user