diff --git a/public/js/buildings/mine.js b/public/js/buildings/mine.js
index 8258069..1e83ebe 100644
--- a/public/js/buildings/mine.js
+++ b/public/js/buildings/mine.js
@@ -4,7 +4,7 @@
Produktionsanzeige + Abholen-Button
================================ */
-/* showNotification() kommt aus dem globalen Scope (launcher.ejs) */
+/* window.showNotification() kommt aus dem globalen Scope (launcher.ejs) */
export async function loadMine(buildingId) {
const actionsTab = document.getElementById("tab-actions");
@@ -34,18 +34,7 @@ async function renderMineStatus(buildingId) {
const minutesLeft = Math.floor(data.next_cycle_in_seconds / 60);
const secondsLeft = data.next_cycle_in_seconds % 60;
- /* Produktion pro Zyklus */
- const cycleMinutes = Math.floor((data.cycle_seconds ?? 3600) / 60);
- const productionRows = (data.production ?? [])
- .map((r) => `
-
- ${resourceIcon(r.resource)}
- ${resourceLabel(r.resource)}
- +${r.amount} / ${cycleMinutes}min
-
`)
- .join("");
-
- /* Abgebaut (bereit zum Abholen) */
+ /* Ressourcen-Zeilen */
const resourceRows = data.available
.map((r) => {
const icon = resourceIcon(r.resource);
@@ -70,13 +59,6 @@ async function renderMineStatus(buildingId) {
- Produktion pro Zyklus
-
- ${productionRows}
-
-
-
-
Abgebaut
${resourceRows}
@@ -131,7 +113,7 @@ document.addEventListener("click", async (e) => {
const data = await res.json();
if (data.error) {
- showNotification(
+ window.showNotification(
data.ready_in_display
? `Die Mine ist noch nicht bereit.\nBereit in: ${data.ready_in_display}`
: data.error,
@@ -147,7 +129,7 @@ document.addEventListener("click", async (e) => {
.map((c) => `${resourceIcon(c.resource)} ${resourceLabel(c.resource)}: +${c.amount}`)
.join("\n");
- showNotification(
+ window.showNotification(
`Erfolgreich abgeholt!\n\n${lines}`,
"Mine",
"⛏️"
@@ -157,7 +139,7 @@ document.addEventListener("click", async (e) => {
} catch (err) {
console.error("Abholen Fehler:", err);
- showNotification(
+ window.showNotification(
"Fehler beim Abholen. Bitte erneut versuchen.",
"Fehler",
"⚠️"