diff --git a/frontend/app.js b/frontend/app.js index ee8954d..cbaf6ba 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -242,7 +242,7 @@ async function uploadWhole(next){ next.message = statusText || (isDuplicate ? 'Duplicate' : 'Uploaded'); next.progress = 100; render(); - try { showBanner(isDuplicate ? `Duplicate: ${next.name}` : `Uploaded: ${next.name}`, isDuplicate ? 'warn' : 'ok'); } catch {} + try { if (isDuplicate) showBanner(`Duplicate: ${next.name}`, 'warn'); } catch {} } } @@ -355,7 +355,6 @@ if (btnPing) btnPing.onclick = async () => { if(j.album_name) { bannerText += ` | Uploading to album: "${j.album_name}"`; } - showBanner(bannerText, 'ok'); } }catch{ pingStatus.textContent = 'No connection'; @@ -374,7 +373,6 @@ if (btnPing) btnPing.onclick = async () => { if (j.albumName) parts.push(`Uploading to album: "${j.albumName}"`); if (j.expiresAt) parts.push(`Expires: ${new Date(j.expiresAt).toLocaleString()}`); if (typeof j.remaining === 'number') parts.push(`Uses left: ${j.remaining}`); - if (parts.length) showBanner(parts.join(' | '), 'ok'); } catch {} })(); diff --git a/frontend/invite.html b/frontend/invite.html index 685fb82..b60da63 100644 --- a/frontend/invite.html +++ b/frontend/invite.html @@ -144,7 +144,6 @@ dz.classList.remove('opacity-50'); if (fi) fi.disabled = false; itemsEl.innerHTML = ''; - try { showBanner('Password accepted. You can upload now.', 'ok'); } catch {} } catch (e) { pwError.textContent = 'Error verifying password.'; pwError.classList.remove('hidden');