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

Function warnNativePdf

src/native_pdf_export_patch.ts:81–94  ·  view source on GitHub ↗
(
	session: NativeExportSession | null,
	message: string,
	details?: Record<string, unknown>
)

Source from the content-addressed store, hash-verified

79}
80
81function warnNativePdf(
82 session: NativeExportSession | null,
83 message: string,
84 details?: Record<string, unknown>
85) {
86 const prefix = session
87 ? `${NATIVE_PDF_LOG_PREFIX} #${session.id}: ${message}`
88 : `${NATIVE_PDF_LOG_PREFIX}: ${message}`;
89 if (details) {
90 console.warn(prefix, details);
91 return;
92 }
93 console.warn(prefix);
94}
95
96function getModalContainers(doc: Document): Set<HTMLElement> {
97 return new Set(Array.from(doc.querySelectorAll<HTMLElement>(EXPORT_MODAL_SELECTOR)));

Callers 5

buildExpandedMarkdownFunction · 0.85
replacePopupCodeEmbedsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected