summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/danix-xyz-hacker/assets/js')
-rw-r--r--themes/danix-xyz-hacker/assets/js/not-found-page.js24
1 files changed, 0 insertions, 24 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..6ec8895 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,5 @@ 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');
});