From 5efc90ca17079823a65af3c7dfef6c1b521ce906 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 20 May 2023 15:52:37 +0200 Subject: [PATCH] Better PWA installation prompt. Display a popup modal instead of a confirm box to prompt the user to install the PWA app. `confirm` blocks the JavaScript engine when run in `beforeMount` and therefore the browser won't be able to proceed with `event.prompt()`. --- platypush/backend/http/webapp/src/App.vue | 18 +++++++++++++++--- .../src/components/elements/ConfirmDialog.vue | 2 -- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/platypush/backend/http/webapp/src/App.vue b/platypush/backend/http/webapp/src/App.vue index f10cd04b..c19f9063 100644 --- a/platypush/backend/http/webapp/src/App.vue +++ b/platypush/backend/http/webapp/src/App.vue @@ -4,11 +4,15 @@ + + Would you like to install this application locally? +