serviceWorker

This commit is contained in:
Hymmel 2025-10-15 13:57:00 +02:00
parent a7d32bd4c1
commit aac31071bf

View file

@ -28,7 +28,9 @@ export function ServiceWorkerProvider() {
}
};
if (process.env.NODE_ENV === 'production') {
const isProduction = window.location.hostname === 'basetracker.lona-development.org';
if (isProduction) {
registerServiceWorker();
} else {
navigator.serviceWorker.getRegistration(SW_PATH).then((registration) => {