blob: 2b4f67611b03f90cc0656117eb56917bbc260a1b (
plain)
1
2
3
4
5
6
7
8
9
|
// 404 page: initialize shared notFoundPage Alpine component
document.addEventListener('alpine:init', () => {
// Ensure search index is preloaded on 404 page
const notFoundElement = document.querySelector('[x-data*="notFoundPage"]');
if (notFoundElement && notFoundElement.__x) {
notFoundElement.__x.$data.init();
}
console.log('404 page initialized with shared search functionality');
});
|