Skip to content

Commit

Permalink
Minor tweaks to how we decide when to re-generate context; speculativ…
Browse files Browse the repository at this point in the history
…e fix for #185.
  • Loading branch information
coddingtonbear committed Apr 2, 2024
1 parent df8e46a commit abaef05
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-web",
"version": "3.3.3",
"version": "3.3.4",
"description": "Connect your browser with your notes in Obsidian",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "Obsidian Web",
"description": "Connect your browser with your notes in Obsidian. Obsidian Web is a customizable web clipper for Obsidian with advanced features.",
"version": "3.3.3",
"version": "3.3.4",

"options_page": "options.html",

Expand Down
4 changes: 2 additions & 2 deletions src/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ if (!document.getElementById(ROOT_CONTAINER_ID)) {
}

useEffect(() => {
if (popupDisplayed && !accordionIsExpanded) {
if (popupDisplayed && popupFormDisplayed) {
updatePreviewContext();
document.addEventListener(
"keydown",
Expand All @@ -448,7 +448,7 @@ if (!document.getElementById(ROOT_CONTAINER_ID)) {
true
);
};
}, [popupDisplayed, accordionIsExpanded, pageUrl]);
}, [popupDisplayed, popupFormDisplayed, pageUrl]);

async function updatePreviewContext(): Promise<void> {
setPreviewContextProcessing(true);
Expand Down

0 comments on commit abaef05

Please sign in to comment.