remark theme change
This commit is contained in:
parent
9c09052c9f
commit
a81f284f29
@ -21,11 +21,15 @@
|
||||
}
|
||||
})(remark_config.components || ['embed']);
|
||||
|
||||
window.onload = function () {
|
||||
|
||||
</script>
|
||||
|
||||
<div id="remark42"></div>
|
||||
|
||||
<script>
|
||||
window.onload = function () {
|
||||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||||
window.REMARK42.changeTheme('dark');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="remark42"></div>
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user