From c2bd3b9754584c737a2bd612a184ac2ca9e1ae47 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Sat, 20 Jun 2026 15:50:14 +0200 Subject: [PATCH] fix hiding install button --- copyparty/web/browser.css | 4 ++-- copyparty/web/util.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index e7994e3a..044a098c 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -5543,8 +5543,8 @@ html.by #spaceUsed_bar { text-align: right; left: auto; } -#op_acc a:not(.btn), -#op_acc input { +#op_acc a:not([hidden]):not(.btn), +#op_acc input:not([hidden]) { font-size: 1.2em; display: block; cursor: pointer; diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 5c566a8a..5a6c24be 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -2445,9 +2445,9 @@ window.addEventListener('load', async () => { if(ebi('inst')){ var installPrompt = null; window.addEventListener("beforeinstallprompt", function(e) { - e.preventDefault(); - installPrompt = e; - ebi('inst').removeAttribute("hidden"); + e.preventDefault(); + installPrompt = e; + ebi('inst').removeAttribute("hidden"); }); ebi('inst').onclick = async function(){ if (!installPrompt) {