upload z zjec z galerii + prettycode

This commit is contained in:
Mateusz Gruszczyński
2025-07-19 22:18:23 +02:00
parent 1df8e44e4d
commit 7a9042ffb2
2 changed files with 20 additions and 2 deletions

View File

@@ -89,3 +89,14 @@ if (!window.receiptUploaderInitialized) {
window.receiptUploaderInitialized = true;
}
document.addEventListener("DOMContentLoaded", function () {
const isMobile = /Mobi|Android|iPhone|iPad/i.test(navigator.userAgent);
const galleryBtn = document.getElementById("galleryBtn");
const galleryInput = document.getElementById("galleryInput");
if (!isMobile && galleryBtn && galleryInput) {
galleryBtn.style.display = "none";
galleryInput.disabled = true;
}
});