pediatric-ai-scribe-v3/public/sw.js
ifedan-ed 04252c3015 v3.0.0: Auth, admin panel, security fixes, per-tab model selector
- Add authMiddleware to all AI/transcribe routes (were unauthenticated)
- Add full admin panel: user management, registration toggle, stats
- Fix XSS in email verification (escape user.name in HTML)
- Fix missing APP_URL fallback in password reset email
- Add per-tab model selector (respects OpenRouter/Bedrock/Azure lists)
- Fix transcribeAudio to send Authorization header
- Fix labs input: textarea instead of single-line input
- Add structured logging: audit_log, api_log, access_log tables
- Add admin CLI (admin-cli.js) for Docker exec management
- Fix duplicate var duration declaration in ai.js catch block
- Fix RETURNING check case-sensitivity in database.js
2026-03-21 19:25:51 -04:00

19 lines
494 B
JavaScript

// Minimal service worker — pass everything through, cache nothing
self.addEventListener('install', function() {
self.skipWaiting();
});
self.addEventListener('activate', function(event) {
// Clear all old caches
event.waitUntil(
caches.keys().then(function(names) {
return Promise.all(
names.map(function(name) { return caches.delete(name); })
);
})
);
});
self.addEventListener('fetch', function(event) {
event.respondWith(fetch(event.request));
});