sdfsdf
All checks were successful
Deploy / deploy-staging (push) Successful in 24s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-22 23:43:19 +02:00
parent a5cf110de2
commit 23afe81251
6 changed files with 34 additions and 22 deletions

View File

@@ -78,7 +78,7 @@
return;
}
const entryRoute = String(options?.entryRoute || '/apps/boersenchecker');
const entryRoute = String(options?.entryRoute || '/apps/boersenchecker/index.php');
const defaultView = String(options?.defaultView || 'overview');
const state = {
@@ -100,7 +100,19 @@
host.innerHTML = html;
enhanceHost(host, this);
if (typeof window.initBoersencheckerCharts === 'function') {
window.initBoersencheckerCharts(host);
try {
window.initBoersencheckerCharts(host);
} catch (error) {
const message = error instanceof Error ? error.message : 'Chart-Initialisierung fehlgeschlagen.';
const statusNode = host.querySelector('[data-bc-chart-status]');
const chartNode = host.querySelector('[data-bc-chart]');
if (statusNode instanceof HTMLElement) {
statusNode.textContent = message;
}
if (chartNode instanceof HTMLElement) {
chartNode.innerHTML = `<div class="muted">${message}</div>`;
}
}
}
},
renderError(error) {