MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / onVisibility

Function onVisibility

graph-ui/src/app/ui-log-install.ts:200–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 void buffer.flush(true);
199 };
200 const onVisibility = (): void => {
201 if (target.document.visibilityState === 'hidden') {
202 void buffer.flush(true);
203 }
204 };
205 const stopObserving = observeErrors((report) => {
206 guarded(() => {
207 buffer.record(report.level, report.source, report.message, {

Callers

nothing calls this directly

Calls 1

flushMethod · 0.80

Tested by

no test coverage detected