From ccf956a63c1e666f4203db48820607f5299d6ac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Santos?= Date: Sat, 13 Apr 2024 23:50:02 +0200 Subject: [PATCH] Prevent install as an app prompt --- index.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.html b/index.html index 40b52ffe7..67f999e77 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,11 @@ ); }); } + + window.addEventListener('beforeinstallprompt', e => { + // Prevent invasive install prompt (users are still able to install as an app) + e.preventDefault(); + });