diff --git a/src/routes/(editor).tsx b/src/routes/(editor).tsx index c6cb51b..98ba34a 100644 --- a/src/routes/(editor).tsx +++ b/src/routes/(editor).tsx @@ -42,7 +42,7 @@ export default function Editor(props: ParentProps) { const themeColor = createMemo(() => { theme(); - return window.getComputedStyle(document.body).backgroundColor; + return globalThis.getComputedStyle(document.body).backgroundColor; }); return <>