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.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();