Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/embedpre.../assets/js
File: gutneberg-script.js
function handlePosterImageLoad() {
[0] Fix | Delete
wp.data.subscribe(() => {
[1] Fix | Delete
var posterImages = document.querySelectorAll(".plyr__poster");
[2] Fix | Delete
var videoWrappers = document.querySelectorAll("[data-playerid]");
[3] Fix | Delete
[4] Fix | Delete
// Iterate over each posterImage
[5] Fix | Delete
posterImages.forEach(function(posterImage) {
[6] Fix | Delete
if (posterImage) {
[7] Fix | Delete
var observer = new MutationObserver(function(mutationsList, observer) {
[8] Fix | Delete
var posterImageStyle = window.getComputedStyle(posterImage);
[9] Fix | Delete
if (posterImageStyle.getPropertyValue('background-image') !== 'none') {
[10] Fix | Delete
setTimeout(function() {
[11] Fix | Delete
videoWrapper.style.opacity = "1";
[12] Fix | Delete
}, 200);
[13] Fix | Delete
observer.disconnect();
[14] Fix | Delete
}
[15] Fix | Delete
});
[16] Fix | Delete
[17] Fix | Delete
observer.observe(posterImage, {
[18] Fix | Delete
attributes: true,
[19] Fix | Delete
attributeFilter: ['style']
[20] Fix | Delete
});
[21] Fix | Delete
}
[22] Fix | Delete
});
[23] Fix | Delete
[24] Fix | Delete
// Iterate over each videoWrapper
[25] Fix | Delete
videoWrappers.forEach(function(videoWrapper) {
[26] Fix | Delete
if (videoWrapper && posterImages.length > 0) {
[27] Fix | Delete
videoWrapper.style.opacity = "1";
[28] Fix | Delete
}
[29] Fix | Delete
});
[30] Fix | Delete
});
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
document.addEventListener("DOMContentLoaded", handlePosterImageLoad);
[34] Fix | Delete
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function