MCPcopy Create free account
hub / github.com/ZingerLittleBee/ServerBee / readMode

Function readMode

apps/web/src/widgets-runtime/runtime-bridge.ts:99–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 function makeSnapshot(mode: 'light' | 'dark'): ThemeSnapshot {
98 return {
99 mode,
100 cssVar: (name: string) =>
101 typeof getComputedStyle !== 'undefined'
102 ? getComputedStyle(document.documentElement).getPropertyValue(name).trim()
103 : ''
104 }

Callers 3

makeThemeWatcherFunction · 0.85
getSnapshotFunction · 0.85
notifyFunction · 0.85

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected