Upgarded to mermaid 8.6.2 and siabled theme detection

This commit is contained in:
Knut Sveidqvist
2020-07-22 19:28:06 +02:00
parent 887c7a7304
commit 8f6d4c1d5d
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export const codeStore = writable(undefined);
export const fromUrl = data => {
let code;
let state;
const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches;
const isDarkMode = window.matchMedia("(prefers-color-scheme: dark)").matches && false
try {
let stateStr = Base64.decode(data)
state = JSON.parse(stateStr);