From 6b3ca03497ea675beda36c090be2c7809db29687 Mon Sep 17 00:00:00 2001 From: Tanner Date: Wed, 15 Jul 2026 00:11:22 +0000 Subject: [PATCH] Don't set capture attribute, was skipping file picker --- frontend/app.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index aa73bad..fe27fda 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -427,19 +427,6 @@ dz.addEventListener('drop', async (e)=>{ // --- Mobile-safe file input change handler --- const isTouch = ('ontouchstart' in window) || (navigator.maxTouchPoints > 0); -// On iOS Safari, the `capture` attribute forces camera-only and hides Photo Library. -// Keep camera default on Android, but remove capture elsewhere to allow picking from Photos/Files. -try { - const ua = (navigator.userAgent || navigator.vendor || window.opera || ''); - const isAndroid = /Android/i.test(ua); - if (fi) { - if (isAndroid) { - fi.setAttribute('capture', 'environment'); - } else { - fi.removeAttribute('capture'); - } - } -} catch {} let suppressClicksUntil = 0; if (isTouch && dropHint) { try { dropHint.classList.add('hidden'); } catch {}