From 2df786a33d264189586bdab6fe399274adfe8517 Mon Sep 17 00:00:00 2001 From: Pavel Kvach Date: Tue, 5 Mar 2024 07:09:20 +0200 Subject: [PATCH] fix(notion): Fix Notion's page title grabbing when opened in "side peek" mode (#2261) Closes #2260 --- src/content/notion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/notion.js b/src/content/notion.js index e8930070d..ad5d0ea0e 100644 --- a/src/content/notion.js +++ b/src/content/notion.js @@ -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() : ''; }