v/cmd/tools/vdoc/theme/dark-mode.js

7 lines
175 B
JavaScript
Raw Permalink Normal View History

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