MCPcopy Create free account
hub / github.com/error311/FileRise / applyTheme

Function applyTheme

public/js/sharedDropView.js:129–135  ·  view source on GitHub ↗
(theme)

Source from the content-addressed store, hash-verified

127 }
128
129 function applyTheme(theme) {
130 if (theme === 'light' || theme === 'dark') {
131 document.documentElement.setAttribute('data-share-theme', theme);
132 } else {
133 document.documentElement.removeAttribute('data-share-theme');
134 }
135 }
136
137 function updateThemeLabel(storedTheme) {
138 if (!themeToggleBtn) return;

Callers 1

sharedDropView.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected