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

Function notify

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

Source from the content-addressed store, hash-verified

127 function ensureObservers() {
128 if (typeof document === 'undefined') {
129 return
130 }
131 if (!observer) {
132 observer = new MutationObserver(() => notify())
133 observer.observe(document.documentElement, { attributes: true, attributeFilter: ['class'] })
134 }
135 if (!storageHandler) {
136 storageHandler = (e: StorageEvent) => {
137 if (e.key === 'theme') {
138 notify()
139 }
140 }
141 window.addEventListener('storage', storageHandler)

Callers 1

ensureObserversFunction · 0.70

Calls 2

readModeFunction · 0.85
makeSnapshotFunction · 0.85

Tested by

no test coverage detected