Skip to content

Commit

Permalink
Fix issue where metronome would not start on Obsidian v0.12.19 or mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
curtgrimes committed Dec 24, 2021
1 parent 4465dd9 commit d0aa048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/useParentMarkdownWrapperVisibilityWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export function useParentMarkdownWrapperVisibilityWatcher(

const markdownWrapperParent = elementRef.value
? elementRef.value.closest(".markdown-source-view") ||
elementRef.value.closest(".markdown-reading-view")
elementRef.value.closest(".markdown-reading-view") ||
elementRef.value.closest(".markdown-preview-view") // v0.12.19 compatibility
: null;

// We want to consider it still visible if it's
Expand Down

0 comments on commit d0aa048

Please sign in to comment.