Commit fbb8eb4
committed
[dark-mode] Fix: Initialize ThemeToggle module in docReady
The ThemeToggle module was instantiated but never initialized, causing the
theme toggle button to be non-functional in the UI. The module's init()
method is now called during document ready, ensuring the button properly
listens for clicks and updates the theme.
This was the final blocker preventing dark mode toggle from working in
the deployed application.1 parent 0fb7bdf commit fbb8eb4
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
49 | 56 | | |
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
0 commit comments