Skip to content

Commit

Permalink
fix: switch to Obsidian's Live Preview State Facet
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Feb 8, 2022
1 parent b485c1d commit a9e43f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/livepreview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const isLivePreview = (state: EditorState) => {
const md = state.field(editorViewField);
const { state: viewState } = md.leaf.getViewState() ?? {};

if (requireApiVersion && requireApiVersion("0.13.21") && false) {
if (requireApiVersion && requireApiVersion("0.13.23")) {
return state.field(editorLivePreviewField);
} else {
const md = state.field(editorViewField);
Expand Down

0 comments on commit a9e43f9

Please sign in to comment.