Skip to content

Commit

Permalink
fix(notion-calendar): Get description for non editable description as…
Browse files Browse the repository at this point in the history
… well
  • Loading branch information
with-shrey committed Mar 5, 2024
1 parent 9f44244 commit a321e25
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 @@ -94,7 +94,7 @@ togglbutton.render(
{ observe: true },
function (elem) {
function getDescription () {
const descriptionElem = elem.querySelector('div[contenteditable="true"]');
const descriptionElem = elem.querySelector('div[contenteditable]');
return descriptionElem ? descriptionElem.textContent.trim() : '';
}
if(!window.location.hostname.includes('calendar.notion.so')) return;
Expand Down

0 comments on commit a321e25

Please sign in to comment.