summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/js/not-found-page.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/danix-xyz-hacker/assets/js/not-found-page.js')
-rw-r--r--themes/danix-xyz-hacker/assets/js/not-found-page.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/themes/danix-xyz-hacker/assets/js/not-found-page.js b/themes/danix-xyz-hacker/assets/js/not-found-page.js
index cec60bd..e86af02 100644
--- a/themes/danix-xyz-hacker/assets/js/not-found-page.js
+++ b/themes/danix-xyz-hacker/assets/js/not-found-page.js
@@ -31,29 +31,6 @@ document.addEventListener('alpine:init', () => {
}
}));
- Alpine.data('notFoundNav', () => {
- const isItalian = window.location.pathname.startsWith('/it/');
- return {
- get homeLink() {
- return isItalian ? '/it/' : '/';
- },
- get articlesLink() {
- return isItalian ? '/it/articles/' : '/articles/';
- },
- get contactLink() {
- return isItalian ? '/it/is/here/' : '/is/here/';
- },
- goHome() {
- window.location.href = this.homeLink;
- },
- goArticles() {
- window.location.href = this.articlesLink;
- },
- goContact() {
- window.location.href = this.contactLink;
- }
- };
- });
console.log('notFoundPage Alpine component registered');
});