Skip to content

Commit

Permalink
fix(gcal): Fix button in Google Calendar (#2150)
Browse files Browse the repository at this point in the history
Closes #2148
  • Loading branch information
nunofmn authored Jan 16, 2023
1 parent 908e184 commit 41a93ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/google-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ togglbutton.render(rootLevelSelectors, { observe: true }, elem => {
return;
}

const closeButton = $('[aria-label]:last-child', elem);
const closeButton = $('[aria-label]:first-child', elem);

getDescription = () => {
const titleSpan = $('span[role="heading"]', elem);
return titleSpan ? titleSpan.textContent.trim() : '';
};
target = closeButton.parentElement.nextSibling; // Left of the left-most action
target = closeButton.parentElement.parentElement.nextSibling; // Left of the left-most action
} else if (elemIsDetail) {
const closeButton = $('div[aria-label]', elem);

Expand Down

0 comments on commit 41a93ea

Please sign in to comment.