10 lines
264 B
JavaScript
10 lines
264 B
JavaScript
(function () {
|
|
const t = localStorage.getItem('theme') || 'dark';
|
|
document.documentElement.setAttribute('data-theme', t);
|
|
document.querySelector('[data-action="try-again"]')?.addEventListener('click', () => {
|
|
location.reload();
|
|
});
|
|
})();
|
|
|
|
|