well i fixed it
if anyone interested add this js code to the footer in all the site
GOOD LOCK with this templater with the new problem after the latest update ??
———————————————- CODE :
/* Add your JavaScript code here.
If you are using the jQuery library, then don't forget to wrap your code inside jQuery.ready() as follows:
jQuery(document).ready(function( $ ){
// Your code in here
});
--
If you want to link a JavaScript file that resides on another server (similar to
<script src="https://example.com/your-js-file.js"></script>), then please use
the "Add HTML Code" page, as this is a HTML code that links a JavaScript file.
End of comment */
let elementToObserve = window.document.body;
let observer = new MutationObserver(function(mutationsList, observer) {
mutationsList.forEach(element => {
if(!!element.addedNodes[0]){
if (element.addedNodes[0].className.includes("elementor-lightbox")){
//console.log(element.addedNodes[0].querySelector("iframe"));
let frame = element.addedNodes[0].querySelector("iframe");
if(!!frame){
frame.setAttribute("allow","autoplay");
frame.setAttribute("src",frame.src);
}
}
}
});
});
observer.observe(elementToObserve, {subtree:true, characterData: false, childList: true, attributes: false});