Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
4Source committed May 24, 2024
1 parent 3015be5 commit 7e568fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gui/FlashcardReviewView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ export class FlashcardReviewView {
this._currentNote.filePath,
);
await wrapper.renderMarkdownWrapper(this._currentCard.front, this.content);
// Set scroll position back to top
this.content.scrollTop = 0;
// Set scroll position back to top
this.content.scrollTop = 0;

// Setup response buttons
this._resetResponseButtons();
Expand Down
2 changes: 1 addition & 1 deletion src/util/RenderMarkdownWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class RenderMarkdownWrapper {
): Promise<void> {
if (recursiveDepth > 4) return;

MarkdownRenderer.render(this.app, markdownString, containerEl, this.notePath, this.plugin);
MarkdownRenderer.render(this.app, markdownString, containerEl, this.notePath, this.plugin);

containerEl.findAll(".internal-embed").forEach((el) => {
const link = this.parseLink(el.getAttribute("src"));
Expand Down

0 comments on commit 7e568fb

Please sign in to comment.