From 13929d8aaf0c83cab4bb34b88fe95cf0c1a38a87 Mon Sep 17 00:00:00 2001 From: jeriox Date: Sun, 11 Jan 2026 18:18:32 +0100 Subject: [PATCH] remove appinstalled event because it triggers outside app in chrome on android --- ephios/static/ephios/js/main.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ephios/static/ephios/js/main.js b/ephios/static/ephios/js/main.js index d3c93d90c..475ad5d9b 100644 --- a/ephios/static/ephios/js/main.js +++ b/ephios/static/ephios/js/main.js @@ -183,19 +183,6 @@ $(document).ready(function () { } }); - // The browser fires the appinstalled event after the PWA has been installed. - // We use this opportunity to ask the user if they want to receive notifications - window.addEventListener('appinstalled', () => { - pwaAndroidBsOffcanvas.hide(); - // isPushEnabled is set by webpush.js from django-webpush - if (typeof isPushEnabled !== undefined && !isPushEnabled) { - notificationBsOffcanvas.show(); - document.getElementById("webpush-subscribe-button") - .addEventListener("click", _ => notificationBsOffcanvas.hide()) - } - deferredInstallPrompt = null; - }); - // When the user clicks on the install button in our PWA install prompt, we can used the saved prompt // from the browser event to actually trigger the installation const buttonInstall = document.getElementById("pwaInstall");