fixed dark mode flash finally
This commit is contained in:
parent
8de53a9320
commit
863ed9c128
3 changed files with 18 additions and 15 deletions
4
site/_includes/-darklight.js
Normal file
4
site/_includes/-darklight.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
const savedTheme = localStorage.getItem('theme');
|
||||
if (savedTheme != null) {
|
||||
document.body.setAttribute("data-theme", savedTheme);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue