Files
michaelschiemer/public/assets/js/utils-C3Omb0Sg.js
Michael Schiemer 55a330b223 Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug
- Add DISCOVERY_SHOW_PROGRESS=true
- Temporary changes for debugging InitializerProcessor fixes on production
2025-08-11 20:13:26 +02:00

2 lines
604 B
JavaScript

function e(){const e=document.querySelectorAll("video[data-src]"),t=window.innerWidth,o=(navigator.connection||{}).effectiveType||"4g";e.forEach(e=>{const n=e.dataset.src;let c="480";c="2g"===o||"slow-2g"===o?"480":"3g"===o?t>=1200?"720":"480":t>=1200?"1080":t>=800?"720":"480";const i=`${n}-${c}.webm`,r=document.createElement("video");r.autoplay=!0,r.loop=!0,r.muted=!0,r.playsInline=!0,r.poster=e.getAttribute("poster")||"",r.setAttribute("width",e.getAttribute("width")||"100%");const a=document.createElement("source");a.src=i,a.type="video/webm",r.appendChild(a),e.replaceWith(r)})}export{e as a};