/**
 * MINIMAL SERVICE WORKER
 * =======================
 * Required by Chrome for "Add to Home Screen" to show the app icon.
 * Place this in your user/ folder (same as side.php).
 */

// Install event
self.addEventListener('install', function(event) {
    self.skipWaiting();
});

// Activate event
self.addEventListener('activate', function(event) {
    event.waitUntil(clients.claim());
});

// Fetch event - just pass through to network (no offline caching)
self.addEventListener('fetch', function(event) {
    event.respondWith(fetch(event.request));
});