1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vdoc: faster initialization of dark mode (#7369)

This commit is contained in:
Daniel Däschle
2020-12-17 10:59:12 +01:00
committed by GitHub
parent 9528efe532
commit 1016b5073f
3 changed files with 13 additions and 10 deletions

View File

@@ -0,0 +1,6 @@
(function() {
var html = document.getElementsByTagName('html')[0];
if (localStorage.getItem('dark-mode') === 'true') {
html.classList.add('dark');
}
})();