This commit is contained in:
Omar Najjar 2025-03-15 14:44:19 +11:00
parent 7cb8bc76e7
commit 7ffc5724f3

View file

@ -203,7 +203,6 @@
</div> </div>
<script> <script>
console.log('Final Cloudinary URL being used for meta tags:', finalUrl);
// Function to detect mobile devices // Function to detect mobile devices
function isMobileDevice() { function isMobileDevice() {
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
@ -1919,8 +1918,12 @@ function getShareableImageUrl(proposal) {
// Add a cache-busting parameter to prevent caching issues // Add a cache-busting parameter to prevent caching issues
const cacheBuster = Date.now(); const cacheBuster = Date.now();
// Combine everything // Store the URL in a variable named finalUrl
return `${cloudinaryUrl}/${textParams}/${templateUrl}?cb=${cacheBuster}`; const finalUrl = `${cloudinaryUrl}/${textParams}/${templateUrl}?cb=${cacheBuster}`;
console.log('Generated final Cloudinary URL:', finalUrl);
return finalUrl;
} }
// Function to toggle comments visibility // Function to toggle comments visibility