Skip to content

Commit

Permalink
fix: reset button mess things up
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanChain committed Oct 11, 2023
1 parent e973ee8 commit e4c416c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export async function openPopup(
})
resetButton.addEventListener('click', async () => {
mfe.value = originalContent
await updateLaTeX()
await logseq.Editor.updateBlock(uuid, contentBefore + originalContent + contentAfter)
})
mfe.onExport = (mfe, latex, range) => wrapLaTeX(mfe.getValue(range, 'latex-expanded'))
mfe.addEventListener('input', async () => {
Expand Down

0 comments on commit e4c416c

Please sign in to comment.