Skip to content

Commit

Permalink
Fixes a bug in which notes having only page notes wouldn't open the p…
Browse files Browse the repository at this point in the history
…op-up when the 'any' option was selected.
  • Loading branch information
coddingtonbear committed Feb 11, 2024
1 parent c2b0912 commit c838b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ chrome.tabs.onUpdated.addListener(async (tabId, changeInfo, tab) => {
injectScript(tabId, () => window.ObsidianWeb.showPopUpMessage());
} else if (
syncSettings.searchMatch.autoOpen === "mention" &&
mentions.mentions.length > 0
mentions.count > 0 // Any direct or mention is sufficient
) {
injectScript(tabId, () => window.ObsidianWeb.showPopUpMessage());
} else if (syncSettings.searchMatch.hoverEnabled) {
Expand Down

0 comments on commit c838b7f

Please sign in to comment.