fix darkmode script load

This commit is contained in:
Jacky Zhao 2023-06-06 20:58:26 -07:00
parent 4d3579ca98
commit 0813f127a3
4 changed files with 22 additions and 21 deletions
quartz/components

View file

@ -1,3 +1,6 @@
// @ts-ignore: this is safe, we don't want to actually make darkmode.inline.ts a module as
// modules are automatically deferred and we don't want that to happen for critical beforeDOMLoads
// see: https://v8.dev/features/modules#defer
import darkmodeScript from "./scripts/darkmode.inline"
import styles from '../styles/darkmode.scss'