Skip to content

Commit

Permalink
fix(notion): Fix notion integration
Browse files Browse the repository at this point in the history
Closes #2078
  • Loading branch information
nunofmn committed Jun 15, 2022
1 parent 1c9fee9 commit 4357408
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/content/notion.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ togglbutton.render(

const wrapper = createWrapper(link);

const root = elem.querySelector('div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(3)');
const root = elem.querySelector('.notion-topbar-share-menu');
if (root) {
root.prepend(wrapper);
root.parentElement.prepend(wrapper);
} else {
elem.querySelector('div:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(3)').prepend(wrapper)
}
}
);
Expand Down

0 comments on commit 4357408

Please sign in to comment.