Skip to content

Commit

Permalink
fix(notion): Fix Notion's page title grabbing when opened in "side pe…
Browse files Browse the repository at this point in the history
…ek" mode (#2261)

Closes #2260
  • Loading branch information
pkvach authored Mar 5, 2024
1 parent f51267b commit 2df786a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/notion.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ togglbutton.render(
{ observe: true },
function (elem) {
function getDescription () {
const descriptionElem = elem.querySelector('.notion-scroller .notion-selectable div[contenteditable="true"]');
const descriptionElem = elem.querySelector('.notion-peek-renderer .notion-scroller h1[contenteditable]');
return descriptionElem ? descriptionElem.textContent.trim() : '';
}

Expand Down

0 comments on commit 2df786a

Please sign in to comment.