function installApp() {
	// Show the prompt
	deferredPrompt.prompt();
	installButton.disabled = true;

	// Wait for the user to respond to the prompt
	deferredPrompt.userChoice.then(choiceResult => {
		if (choiceResult.outcome === 'accepted') {
			console.log('PWA setup accepted');
			installButton.hidden = true;
		} else {
			console.log('PWA setup rejected');
		}
		installButton.disabled = false;
		deferredPrompt = null;
	});
}
// function that shows the install prompt
function that shows the install prompt
function that shows the install prompt
function installApp() {
	deferredPrompt.prompt();
	installButton.disabled = true;
	deferredPrompt.userChoice.then(choiceResult => {
		if (choiceResult.outcome === 'accepted') {
			console.log('PWA setup accepted');
			installButton.hidden = true;
		} else {
			console.log('PWA setup rejected');
		}
		installButton.disabled = false;
		deferredPrompt = null;
	});
}
function installApp ( ) { deferredPrompt . prompt ( ) ; installButton . disabled = true ; deferredPrompt . userChoice . then ( choiceResult => { if ( choiceResult . outcome === 'accepted' ) { console . log ( 'PWA setup accepted' ) ; installButton . hidden = true ; } else { console . log ( 'PWA setup rejected' ) ; } installButton . disabled = false ; deferredPrompt = null ; } ) ; }
function that shows the install prompt
function that shows the install prompt
// Show the prompt // Wait for the user to respond to the prompt