Prevent install as an app prompt

This commit is contained in:
João Santos 2024-04-13 23:50:02 +02:00 committed by Samuel H
parent c84531af35
commit ccf956a63c
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@
);
});
}
window.addEventListener('beforeinstallprompt', e => {
// Prevent invasive install prompt (users are still able to install as an app)
e.preventDefault();
});
</script>
</head>