diff --git a/public/index.html b/public/index.html index d3d8782..5fa68da 100644 --- a/public/index.html +++ b/public/index.html @@ -52,8 +52,7 @@ const mainViews = { auth: document.getElementById('auth-view'), employee: document.getElementById('employee-dashboard'), admin: document.getElementById('admin-dashboard'), archive: document.getElementById('admin-archive-view'), timeOffHistory: document.getElementById('admin-time-off-history-view') }; const navUserControls = document.getElementById('nav-user-controls'), welcomeMessage = document.getElementById('welcome-message'), signOutBtn = document.getElementById('sign-out-btn'); const messageBox = document.getElementById('message-box'), loadingSpinner = document.getElementById('loading-spinner'), modalContainer = document.getElementById('modal-container'); - let authToken = localStorage.getItem('authToken'), user = JSON.parse(localStorage.getItem('user')), allTimeEntries = [], allUsers = [], employeeTimerInterval = null; - + let authToken, user, allTimeEntries = [], allUsers = [], employeeTimerInterval = null; // --- Helper Functions --- const showLoading = (show) => loadingSpinner.innerHTML = show ? `
` : ''; const showMessage = (message, type = 'success') => { messageBox.innerHTML = `