Skip to content

Commit

Permalink
chore: removed unnecessary ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Sep 14, 2023
1 parent 4d993bb commit b847a73
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,6 @@ ${editor.getDoc().getSelection()}
el.replaceWith(admonitionElement);

const view = app.workspace.getActiveViewOfType(MarkdownView);
//hack
//@ts-ignore
if (view?.editor?.cm?.state?.field(editorLivePreviewField)) {
const editor = view.editor.cm;
admonitionElement.onClickEvent((ev) => {
Expand Down

0 comments on commit b847a73

Please sign in to comment.