nuxt
nuxt copied to clipboard
fix: pass the results of userChoice to the developers
There are times when we need to handle different logic based on the result of userChoice.
$pwa?.install().then((userChoice) => {
if (userChoice.outcome === 'accepted') {
console.log('accepted install');
}
})