mirror of
https://github.com/shrekbytes/advanced-pdf-export.git
synced 2026-07-22 07:25:03 +00:00
Update main.ts
This commit is contained in:
parent
65f6683b6d
commit
92c9650b78
1 changed files with 7 additions and 4 deletions
11
main.ts
11
main.ts
|
|
@ -1986,10 +1986,13 @@ function resolveActiveMarkdownFile(app: App, initialFile?: TFile | null): TFile
|
|||
|
||||
class PDFExportModal extends Modal {
|
||||
plugin: MarkdownPDFPlugin;
|
||||
private editorEl: HTMLTextAreaElement;
|
||||
private previewEl: HTMLElement;
|
||||
private pageCountEl: HTMLElement;
|
||||
private noteTitleEl: HTMLElement;
|
||||
// These, like renderBtn/exportBtn/loadingOverlayEl below, are assigned
|
||||
// unconditionally in buildUI() (called first thing in onOpen()) — never
|
||||
// read before then, so a definite-assignment assertion is accurate here.
|
||||
private editorEl!: HTMLTextAreaElement;
|
||||
private previewEl!: HTMLElement;
|
||||
private pageCountEl!: HTMLElement;
|
||||
private noteTitleEl!: HTMLElement;
|
||||
private renderBtn!: HTMLButtonElement;
|
||||
private exportBtn!: HTMLButtonElement;
|
||||
private loadingOverlayEl!: HTMLElement;
|
||||
|
|
|
|||
Loading…
Reference in a new issue