Detector Addblock javascript

                  jQuery(document).ready(function(){
	
	let retrasoAddblock= 1; //Retraso en segundos para mostra el banner.


/*************************************
   NO CAMBIAR NADA DEBAJO DE ESTO
*************************************/


    var adblockEnabled = false;

    document.body.innerHTML +='<div class="adsbygoogle" id="ad-detector"> </div>';
    var adElement = document.getElementById("ad-detector");
    var canvasAddblock = document.querySelector("#CanvasAddblock .offcanvas-inner");
 
    var adElementStyle = getComputedStyle(adElement, null);
	let cerrarAddblock = document.querySelector('.botonAddblock');

	accionAddblock = ()=>{
		canvasAddblock.classList.add('muestra-canvas')
	}
	
    if(adElementStyle.display === "none"){
		setTimeout(() =>{ accionAddblock()}, (retrasoAddblock * 1000));
	}
    
    cerrarAddblock.addEventListener("click", () =>{
		canvasAddblock.classList.remove('muestra-canvas');
	});
});