mirror of
https://github.com/ceratic/MediaCollectorLibary.git
synced 2026-05-13 23:56:46 +02:00
...
This commit is contained in:
20
public/resources/js/app.js
Normal file
20
public/resources/js/app.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// Import required modules
|
||||
import Alpine from 'alpinejs';
|
||||
import axios from 'axios';
|
||||
|
||||
// Initialize Alpine.js
|
||||
window.Alpine = Alpine;
|
||||
Alpine.start();
|
||||
|
||||
// Set up axios defaults
|
||||
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
axios.defaults.withCredentials = true;
|
||||
|
||||
// Global error handler
|
||||
window.onerror = function(message, source, lineno, colno, error) {
|
||||
console.error('Global error:', { message, source, lineno, colno, error });
|
||||
return false;
|
||||
};
|
||||
|
||||
// Export for potential future use
|
||||
export { Alpine, axios };
|
||||
Reference in New Issue
Block a user