web/elements: fix log level for diagram
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d280577830
commit
ab9efcea77
|
@ -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: {
|
||||||
|
|
Reference in a new issue