From bf988203123aa2dac86059db67429be2a955f702 Mon Sep 17 00:00:00 2001 From: Alaeri Date: Tue, 17 Feb 2026 00:50:35 +0100 Subject: [PATCH] Fix: guard missing checkCurrentIsDbGraph API to avoid handshake crash --- src/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 1f7e082..49ed1e8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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()