Skip to content

Commit

Permalink
fix(evernote): Fix placement of Toggl link in UI (#2286)
Browse files Browse the repository at this point in the history
Closes #2134
  • Loading branch information
pkvach authored Apr 15, 2024
1 parent f4ae333 commit bf61035
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/content/evernote.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ togglbutton.render('#qa-NOTE_HEADER:not(.toggl)', { observe: true }, function (e
});

// Insert at the start of the same header segment as the share button
elem
.querySelector('#qa-SHARE_BUTTON')
.parentNode
.prepend(link);
const shareButton = elem.querySelector('#qa-SHARE_BUTTON');
if (shareButton) {
const shareButtonParent = shareButton.parentNode;
shareButtonParent.parentNode.prepend(link);
}
});

0 comments on commit bf61035

Please sign in to comment.