mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2025-12-14 06:36:46 +00:00
first copies from portal
This commit is contained in:
@@ -1 +1,8 @@
|
||||
import './bootstrap';
|
||||
|
||||
// Light switcher
|
||||
document.querySelectorAll('.light-switch').forEach(lightSwitch => lightSwitch.checked = true);
|
||||
document.documentElement.classList.add('dark');
|
||||
document.querySelector('html').style.colorScheme = 'dark';
|
||||
localStorage.setItem('dark-mode', true);
|
||||
document.dispatchEvent(new CustomEvent('darkMode', { detail: { mode: 'on' } }));
|
||||
|
||||
Reference in New Issue
Block a user