Prevent install as an app prompt

This commit is contained in:
João Santos authored and Samuel H committed 2024-04-13 17:52:38 -04:00
1 parent c84531af35
commit ccf956a63c
1 file changed
+5
+5
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>