From b1bce25137383d283f5c0ee1f6885b9e8e9e1c20 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 6 Aug 2023 05:58:02 +0300 Subject: [PATCH] fixed fill enemies data, clean element --- pages/js/rev2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/js/rev2.js b/pages/js/rev2.js index 9add11d..c5fd2ff 100644 --- a/pages/js/rev2.js +++ b/pages/js/rev2.js @@ -15,6 +15,8 @@ export function update_rev2(data) { // Обновление HP const content_element = document.getElementById('rev2_emenies'); + content_element.innerHTML = ''; + data.enemies.forEach((emeny) => { let enemy_data = emeny.split(' ');