diff --git a/js/modal.js b/js/modal.js index f7a3723..17e29af 100644 --- a/js/modal.js +++ b/js/modal.js @@ -11,10 +11,10 @@ function modalPage(create, width, sec, title, message, color, type, func, close, if (create === true) { // Obtém a div pelo ID - const div = document.getElementById('modal-block'); + const modal = document.getElementById('modal-block'); // Remove o elemento do DOM - div.remove(); + modal.remove(); var div = ''; var color_modal = '';