MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / hasLiveTrackedModal

Function hasLiveTrackedModal

src/native_pdf_export_patch.ts:141–143  ·  view source on GitHub ↗
(session: NativeExportSession)

Source from the content-addressed store, hash-verified

139}
140
141function hasLiveTrackedModal(session: NativeExportSession): boolean {
142 return Array.from(session.trackedModals).some((modal) => modal.isConnected);
143}
144
145function shouldKeepSessionAlive(session: NativeExportSession): boolean {
146 return hasLiveTrackedModal(session) || session.popupCleanups.size > 0 || session.popupOpened;

Callers 3

shouldKeepSessionAliveFunction · 0.85
maybeCleanupSessionFunction · 0.85
refreshTrackedModalsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected