summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/js/not-found-page.js
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-17 11:35:24 +0200
committerDanilo M. <danix@danix.xyz>2026-04-17 11:35:24 +0200
commit681ee6ca03258402deefc62a4d08f44ae7b70cbe (patch)
tree6ac38c48869fffec830dc9781ab57ef6577f014d /themes/danix-xyz-hacker/assets/js/not-found-page.js
parent77e4202027f75cfb1dcea21f6e0d1e7372348c91 (diff)
downloaddanixxyz-681ee6ca03258402deefc62a4d08f44ae7b70cbe.tar.gz
danixxyz-681ee6ca03258402deefc62a4d08f44ae7b70cbe.zip
fix: simplify Alpine.js component initialization by loading articles data directly
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.js9
1 files changed, 1 insertions, 8 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 1590b75..ec42708 100644
--- a/themes/danix-xyz-hacker/assets/js/not-found-page.js
+++ b/themes/danix-xyz-hacker/assets/js/not-found-page.js
@@ -3,14 +3,7 @@ document.addEventListener('alpine:init', () => {
showEasterEgg: false,
searchQuery: '',
filteredArticles: [],
- allArticles: [],
-
- init() {
- // Initialize articles from window.articlesData if available
- if (window.articlesData) {
- this.allArticles = window.articlesData;
- }
- },
+ allArticles: window.articlesData || [],
filterArticles(query) {
this.searchQuery = query.toLowerCase();