feat: populate book data internally

This commit is contained in:
Cory Dransfeldt 2023-07-07 13:14:50 -07:00
parent 737637ba56
commit e68a16b925
No known key found for this signature in database
5 changed files with 13 additions and 59 deletions

View file

@ -1,10 +0,0 @@
;(function () {
const isDarkMode = () =>
localStorage.theme === 'dark' ||
(!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)
if (isDarkMode()) {
document.documentElement.classList.add('dark')
} else {
document.documentElement.classList.remove('dark')
}
})()