dev #1

Merged
Hymmel merged 10 commits from dev into main 2025-10-15 14:43:35 +02:00
Showing only changes of commit aac31071bf - Show all commits

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(); registerServiceWorker();
} else { } else {
navigator.serviceWorker.getRegistration(SW_PATH).then((registration) => { navigator.serviceWorker.getRegistration(SW_PATH).then((registration) => {