This commit is contained in:
@@ -81,6 +81,9 @@
|
||||
|
||||
<!-- Diagramme -->
|
||||
<script th:inline="javascript">
|
||||
// theme.js setzt die Plattformklasse erst mit DOMContentLoaded. Die Charts müssen
|
||||
// danach entstehen, sonst lesen sie noch die alte globale Akzentfarbe.
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
// Die Plattform-Tokens liegen auf body.sn-platform. Von dort lesen, damit die
|
||||
// Diagramme nicht auf die alte globale Akzentfarbe zurückfallen.
|
||||
const css = getComputedStyle(document.body);
|
||||
@@ -142,6 +145,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Footer -->
|
||||
|
||||
Reference in New Issue
Block a user