 {
            navigator.serviceWorker.register('/service-worker.js').then(function (registration) {
                console.log('ServiceWorker registration successful with scope: ', registration.scope);
            }).catch(function (error) {
                console.log('ServiceWorker registration failed: ', error);
            });
        }

        // Handle beforeinstallprompt event for PWA installation
        let deferredPrompt;
        const showInstallButton = () =>
            console.log('PWA inst