This commit is contained in:
@@ -8,11 +8,35 @@ let dashboardData = null;
|
||||
|
||||
// Initialize app
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
initializeTabs();
|
||||
initializeEventListeners();
|
||||
checkAuthStatus(); // Check authentication status on page load
|
||||
loadDashboard();
|
||||
loadSeriesSources();
|
||||
try {
|
||||
initializeTabs();
|
||||
} catch (error) {
|
||||
console.error('Error initializing tabs:', error);
|
||||
}
|
||||
|
||||
try {
|
||||
initializeEventListeners();
|
||||
} catch (error) {
|
||||
console.error('Error initializing event listeners:', error);
|
||||
}
|
||||
|
||||
try {
|
||||
checkAuthStatus(); // Check authentication status on page load
|
||||
} catch (error) {
|
||||
console.error('Error checking auth status:', error);
|
||||
}
|
||||
|
||||
try {
|
||||
loadDashboard();
|
||||
} catch (error) {
|
||||
console.error('Error loading dashboard:', error);
|
||||
}
|
||||
|
||||
try {
|
||||
loadSeriesSources();
|
||||
} catch (error) {
|
||||
console.error('Error loading series sources:', error);
|
||||
}
|
||||
});
|
||||
|
||||
// Tab management
|
||||
|
||||
Reference in New Issue
Block a user