$(window).on('load', function () { //const certificado = `${host}/${session.movetask_acesso[0].certificado}`; if (window.location.href.includes('dashboard') || !window.location.href.includes('lista') || localStorage.getItem('idUser') == "") { $("#loader").remove(); $('#divAcoes').hide(); $(this).trigger('resize'); } }); $(document).keyup(function (e) { if (e.keyCode === 27) //Esc CloseFileModal(); });