diff --git a/src/main.ts b/src/main.ts index 2d59e4b..02be675 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,6 +8,7 @@ import { RequestUrlResponse, requestUrl, TFile, + TAbstractFile, normalizePath } from 'obsidian'; @@ -181,7 +182,7 @@ export default class RelayMdPLugin extends Plugin { } } - async send_document(activeFile: Tfile) { + async send_document(activeFile: TFile | null) { try { if (!activeFile) { return;