luxury4544

Post a comment

You must be logged in to post a comment.

// kamal testing code--startconst observer = new MutationObserver(function(mutations, observer) { const fileInput = document.getElementById("photoimg"); if (fileInput) { fileInput.setAttribute("accept", "image/*,video/*"); fileInput.setAttribute("multiple", ""); console.log("✅ accept updated to:", fileInput.getAttribute("accept")); observer.disconnect(); // Stop once found } });observer.observe(document.body, { childList: true, subtree: true });function updateAccept() { const fileInput = document.getElementById("photoimg"); if (fileInput) { fileInput.setAttribute("accept", "image/*,video/*"); fileInput.setAttribute("multiple", ""); console.log("✅ accept updated to:", fileInput.getAttribute("accept")); clearInterval(interval); // Stop checking } }const interval = setInterval(updateAccept, 500); // Check every 500ms