( session: NativeExportSession | null, message: string, details?: Record<string, unknown> )
| 79 | } |
| 80 | |
| 81 | function 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 | |
| 96 | function getModalContainers(doc: Document): Set<HTMLElement> { |
| 97 | return new Set(Array.from(doc.querySelectorAll<HTMLElement>(EXPORT_MODAL_SELECTOR))); |
no outgoing calls
no test coverage detected