Skip to content

Commit

Permalink
fix(notion): Fix description parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
with-shrey committed Oct 3, 2024
1 parent e33becb commit 2a3bcda
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/content/notion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 2a3bcda

Please sign in to comment.