mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-08-02 12:57:59 +02:00
4 lines
136 B
JavaScript
4 lines
136 B
JavaScript
var bodyTag = document.querySelector('body');
|
|
if (localStorage.getItem('dark_mode') === 'true') {
|
|
bodyTag.className = 'dark-mode';
|
|
} |