Skip to content

Commit

Permalink
feat(markdown): persist preview state (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov authored Aug 15, 2022
1 parent 12c6906 commit 3fadd32
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/renderer/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ watch(
watch(
() => [snippetStore.selectedId, snippetStore.fragment],
() => {
snippetStore.isMarkdownPreview = false
if (
snippetStore.selected?.content[snippetStore.fragment].language !==
'markdown'
) {
snippetStore.isMarkdownPreview = false
}
}
)
Expand Down

0 comments on commit 3fadd32

Please sign in to comment.