fixed fill enemies data, clean element

This commit is contained in:
Alexander Popov 2023-08-06 05:58:02 +03:00
parent fbd62e9a03
commit b1bce25137

View File

@ -15,6 +15,8 @@ export function update_rev2(data) {
// Обновление HP // Обновление HP
const content_element = document.getElementById('rev2_emenies'); const content_element = document.getElementById('rev2_emenies');
content_element.innerHTML = '';
data.enemies.forEach((emeny) => { data.enemies.forEach((emeny) => {
let enemy_data = emeny.split(' '); let enemy_data = emeny.split(' ');