Remove remaining frontend console logs for production
- Remove HTML loading and WASM initialization logs - Clean up service worker registration/activation logs - Remove alarm system initialization messages - Remove notification permission logging - Keep essential error logging for troubleshooting - Clean production console output 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -7,13 +7,11 @@ const STORAGE_KEY = 'calendar_alarms';
|
||||
|
||||
// Install event
|
||||
self.addEventListener('install', event => {
|
||||
console.log(`Service Worker ${SW_VERSION} installing...`);
|
||||
self.skipWaiting(); // Activate immediately
|
||||
});
|
||||
|
||||
// Activate event
|
||||
self.addEventListener('activate', event => {
|
||||
console.log(`Service Worker ${SW_VERSION} activated`);
|
||||
event.waitUntil(self.clients.claim()); // Take control immediately
|
||||
});
|
||||
|
||||
@@ -52,7 +50,6 @@ function handleCheckAlarms(event, data) {
|
||||
data: dueAlarms
|
||||
});
|
||||
|
||||
console.log(`Checked ${allAlarms.length} alarms, found ${dueAlarms.length} due`);
|
||||
} catch (error) {
|
||||
console.error('Error checking alarms:', error);
|
||||
event.ports[0].postMessage({
|
||||
@@ -119,7 +116,6 @@ setInterval(async () => {
|
||||
});
|
||||
});
|
||||
|
||||
console.log('Requested alarm check from main app');
|
||||
} catch (error) {
|
||||
console.error('Background alarm check failed:', error);
|
||||
}
|
||||
@@ -151,6 +147,4 @@ self.addEventListener('notificationclick', event => {
|
||||
return self.clients.openWindow('/');
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
console.log(`Calendar Alarms Service Worker ${SW_VERSION} loaded`);
|
||||
});
|
||||
Reference in New Issue
Block a user