From bf596a820c3455ab149ac8c5cda76933527bcd08 Mon Sep 17 00:00:00 2001 From: Degradin <42292046+Degradin@users.noreply.github.com> Date: Fri, 24 Jan 2025 11:50:45 +0300 Subject: [PATCH] MiniApp Fixes --- .gitignore | 5 +---- public/index.html | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 47009d1..851e04e 100644 --- a/.gitignore +++ b/.gitignore @@ -125,7 +125,4 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* -json/logs.json -json/logs.json -json/logs.json -json/logs.json +json/logs.json \ No newline at end of file diff --git a/public/index.html b/public/index.html index 546bd58..97bdff4 100644 --- a/public/index.html +++ b/public/index.html @@ -436,6 +436,7 @@ // Склад const warehouseDiv = document.getElementById("warehouse"); + if (warehouse.maxMaterials != 0) { warehouseDiv.innerHTML = ""; const resources = ['wood', 'coal', 'oil', 'metall', 'gold', 'diamond']; resources.forEach(res => { @@ -449,6 +450,7 @@ const progressBar = document.createElement("div"); progressBar.innerHTML = `
`; warehouseDiv.appendChild(progressBar); + } }) .catch(err => { console.error("Ошибка загрузки данных:", err);