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

Function getStoredTheme

public/js/sharedDropView.js:102–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 const THEME_KEY = 'fr_share_theme';
101
102 function getStoredTheme() {
103 try {
104 const t = localStorage.getItem(THEME_KEY);
105 return (t === 'light' || t === 'dark') ? t : 'auto';
106 } catch (e) {
107 return 'auto';
108 }
109 }
110
111 function setStoredTheme(theme) {
112 try {

Callers 1

sharedDropView.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected