mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2026-10-21 01:34:22 +00:00
fix(markup): only escape innermost markup
Signed-off-by: Sphericalkat <amolele@gmail.com>
This commit is contained in:
1 parent
ce73ad4dfc
commit
8e68c7bcc2
4 files changed
+580
-789
No files matched your search
+1
-1
@@ -13,7 +13,7 @@
|
||||
<title>RIP Medium</title>
|
||||
|
||||
<script>
|
||||
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
|
||||
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
|
||||
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
||||
document.documentElement.classList.add('dark')
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user