fix(): Ajuste na abertura de janela modal

This commit is contained in:
Kenio 2025-12-17 11:33:40 -03:00
parent dcb98888b5
commit 5fbe14a838

View file

@ -11,7 +11,11 @@ function modalPage(create, width, sec, title, message, color, type, func, close,
if (create === true) {
// Remove o modal caso já exista
document.getElementById('modal-block').remove();
const modal = document.getElementById('modal-block');
if (modal) {
modal.remove();
}
var div = '';
var color_modal = '';