feat: populate book data internally
This commit is contained in:
parent
737637ba56
commit
e68a16b925
5 changed files with 13 additions and 59 deletions
|
@ -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')
|
||||
}
|
||||
})()
|
Reference in a new issue