Skip to content

Commit

Permalink
Do not count Obsidian as being available unless we know we're authent…
Browse files Browse the repository at this point in the history
…icated, too.
  • Loading branch information
coddingtonbear committed Mar 30, 2024
1 parent ccefec1 commit d434908
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ if (!document.getElementById(ROOT_CONTAINER_ID)) {
const result = jsonData as StatusResponse;
if (
result.status === "OK" &&
result.authenticated &&
result.service.includes("Obsidian Local REST API")
) {
setObsidianUnavailable(false);
Expand Down Expand Up @@ -754,8 +755,9 @@ if (!document.getElementById(ROOT_CONTAINER_ID)) {
<MaterialAlert severity="error">
<p className="popup-text">
Could not connect to Obsidian! Make sure Obsidian is
running and that the Obsidian Local REST API plugin is
enabled.
running, that the Obsidian Local REST API plugin is
enabled, and that Obsidian Web is configured with the
correct API Key.
</p>
<div className="submit">
<Button
Expand Down

0 comments on commit d434908

Please sign in to comment.