()
| 1108 | |
| 1109 | |
| 1110 | function getTheme() { |
| 1111 | const saved = localStorage.getItem("theme"); |
| 1112 | if (saved) return saved; |
| 1113 | return "dark"; |
| 1114 | } |
| 1115 | |
| 1116 | function setTheme(theme) { |
| 1117 | document.documentElement.setAttribute("data-theme", theme); |
no outgoing calls
no test coverage detected