document.body

master
Mark MacKay 2021-06-16 18:57:38 -05:00
parent 243190c971
commit 923923d6df
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
(function(){
const canvasContent = localStorage.getItem("md-canvasContent");
const isDark = localStorage.getItem("md-darkmode");
if (!isDark) body.classList.add("inverted");
if (!isDark) document.body.classList.add("inverted");
if (!canvasContent) return;
const parser = new DOMParser();
const doc = parser.parseFromString(canvasContent, "image/svg+xml");