sdfsdf
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user