document.body
parent
243190c971
commit
923923d6df
|
@ -1,7 +1,7 @@
|
||||||
(function(){
|
(function(){
|
||||||
const canvasContent = localStorage.getItem("md-canvasContent");
|
const canvasContent = localStorage.getItem("md-canvasContent");
|
||||||
const isDark = localStorage.getItem("md-darkmode");
|
const isDark = localStorage.getItem("md-darkmode");
|
||||||
if (!isDark) body.classList.add("inverted");
|
if (!isDark) document.body.classList.add("inverted");
|
||||||
if (!canvasContent) return;
|
if (!canvasContent) return;
|
||||||
const parser = new DOMParser();
|
const parser = new DOMParser();
|
||||||
const doc = parser.parseFromString(canvasContent, "image/svg+xml");
|
const doc = parser.parseFromString(canvasContent, "image/svg+xml");
|
||||||
|
|
Loading…
Reference in New Issue