Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ const main = async () => {
await logseq.UI.showMsg('logseq-datenlp-plugin loaded')

// Check if DB version is being used
const isDb = await logseq.App.checkCurrentIsDbGraph()
let isDb = false
try {
isDb = await logseq.App.checkCurrentIsDbGraph()
} catch {
// Host doesn't expose the method → treat as non-DB graph
isDb = false
}

handlePopupAndInputFocus()

Expand Down