MCPcopy Create free account
hub / github.com/ShipSecAI/studio / initializeTheme

Function initializeTheme

frontend/src/store/themeStore.ts:72–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71// Initialize theme on module load (handles initial page load)
72export function initializeTheme() {
73 const stored = localStorage.getItem('shipsec-theme');
74 if (stored) {
75 try {
76 const parsed = JSON.parse(stored);
77 if (parsed?.state?.theme) {
78 applyTheme(parsed.state.theme); // No animation on initial load
79 }
80 } catch {
81 // Invalid stored value, use default
82 }
83 }
84}

Callers 1

main.tsxFile · 0.90

Calls 2

applyThemeFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected