Skip to content

Commit

Permalink
fix: very strict typescript :D
Browse files Browse the repository at this point in the history
  • Loading branch information
xeroc committed Dec 3, 2023
1 parent 5dd029b commit 510cd21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
RequestUrlResponse,
requestUrl,
TFile,
TAbstractFile,
normalizePath
} from 'obsidian';

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 510cd21

Please sign in to comment.