web/elements: fix log level for diagram

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-12-22 15:12:30 +01:00
parent d280577830
commit ab9efcea77

View file

@ -35,7 +35,7 @@ export class Diagram extends AKElement {
const matcher = window.matchMedia("(prefers-color-scheme: light)"); const matcher = window.matchMedia("(prefers-color-scheme: light)");
const handler = (ev?: MediaQueryListEvent) => { const handler = (ev?: MediaQueryListEvent) => {
mermaid.initialize({ mermaid.initialize({
logLevel: 3, logLevel: "fatal",
startOnLoad: false, startOnLoad: false,
theme: ev?.matches || matcher.matches ? "default" : "dark", theme: ev?.matches || matcher.matches ? "default" : "dark",
flowchart: { flowchart: {