diff --git a/public/index.html b/public/index.html
index 8205d8d..0586c2f 100644
--- a/public/index.html
+++ b/public/index.html
@@ -53,7 +53,7 @@
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');
- // **FIXED**: Declared variables safely without parsing immediately.
+ // **FIXED**: Declared variables safely without parsing immediately. This prevents the script from crashing.
let authToken, user, allTimeEntries = [], allUsers = [], employeeTimerInterval = null;
// --- Helper Functions ---
@@ -92,7 +92,6 @@
const showView = (viewName) => { clearInterval(employeeTimerInterval); Object.keys(mainViews).forEach(v => mainViews[v].classList.toggle('hidden', v !== viewName)); }
// --- UI Rendering ---
- // **FIXED**: This function now safely handles loading from localStorage.
function updateUI() {
try {
const storedUser = localStorage.getItem('user');
@@ -275,18 +274,6 @@
signOutBtn.addEventListener('click', () => handleSignOut());
updateUI();
- // Service worker registration can be added back once the main app logic is stable.
- // if ('serviceWorker' in navigator) {
- // window.addEventListener('load', () => {
- // navigator.serviceWorker.register('/sw.js')
- // .then(registration => {
- // console.log('✅ ServiceWorker registration successful with scope: ', registration.scope);
- // })
- // .catch(err => {
- // console.log('❌ ServiceWorker registration failed: ', err);
- // });
- // });
- // }