1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/cmd/tools/vdoc/theme/dark-mode.js

6 lines
133 B
JavaScript
Raw Permalink Normal View History

2023-08-02 10:46:18 +03:00
(function () {
if (localStorage.getItem('dark-mode') === 'true') {
document.querySelector('html').classList.add('dark');
}
})();