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

Function setStoredTheme

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

Source from the content-addressed store, hash-verified

109 }
110
111 function setStoredTheme(theme) {
112 try {
113 localStorage.setItem(THEME_KEY, theme);
114 } catch (e) {
115 // ignore
116 }
117 }
118
119 function getSystemTheme() {
120 return (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches)

Callers 1

sharedDropView.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected