fix hiding install button

This commit is contained in:
Til Schmitter 2026-06-20 15:50:14 +02:00
parent 72ca118e82
commit c2bd3b9754
2 changed files with 5 additions and 5 deletions

View file

@ -5543,8 +5543,8 @@ html.by #spaceUsed_bar {
text-align: right; text-align: right;
left: auto; left: auto;
} }
#op_acc a:not(.btn), #op_acc a:not([hidden]):not(.btn),
#op_acc input { #op_acc input:not([hidden]) {
font-size: 1.2em; font-size: 1.2em;
display: block; display: block;
cursor: pointer; cursor: pointer;

View file

@ -2445,9 +2445,9 @@ window.addEventListener('load', async () => {
if(ebi('inst')){ if(ebi('inst')){
var installPrompt = null; var installPrompt = null;
window.addEventListener("beforeinstallprompt", function(e) { window.addEventListener("beforeinstallprompt", function(e) {
e.preventDefault(); e.preventDefault();
installPrompt = e; installPrompt = e;
ebi('inst').removeAttribute("hidden"); ebi('inst').removeAttribute("hidden");
}); });
ebi('inst').onclick = async function(){ ebi('inst').onclick = async function(){
if (!installPrompt) { if (!installPrompt) {