From 2a3bcda21724bd570127ed4e415341db50fd4054 Mon Sep 17 00:00:00 2001 From: Shrey Gupta Date: Thu, 3 Oct 2024 17:08:41 +0530 Subject: [PATCH] fix(notion): Fix description parsing --- src/content/notion.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/content/notion.js b/src/content/notion.js index 2ee4625ce..6b09e7c2f 100644 --- a/src/content/notion.js +++ b/src/content/notion.js @@ -67,12 +67,10 @@ setTimeout(() => { title = controls.nextElementSibling; } else { const parent = controls.parentElement; - - if (!parent) return ''; - title = parent ? parent.nextElementSibling : ''; } - } else if (topBar) { + } + if (!title && topBar) { const breadcrumbs = topBar.querySelector('div > .notranslate') if (breadcrumbs) { title = breadcrumbs.childNodes[breadcrumbs.childNodes.length - 1].querySelector('.notranslate:last-child')