Skip to content

Commit

Permalink
Updates selector for label-targetting (#82)
Browse files Browse the repository at this point in the history
It appears a recent change to the GCal DOM has impacted our ability to locate the proper label element. There now appear to be several span elements. We'll use a [jsname] attribute to locate our preferred element.
  • Loading branch information
jonathansampson authored Nov 6, 2024
1 parent 42a5a87 commit a92341e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brave/brave-talk-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function tryCloneMeetEntry() {
// Update image and button label
const image = talkEntry.querySelector("img, svg");
const button = talkEntry.querySelector("button");
const label = button?.querySelector("span");
const label = button?.querySelector("span[jsname='V67aGc']");

// We require both the image and button to be present
if (image instanceof Element && button instanceof HTMLElement) {
Expand Down

0 comments on commit a92341e

Please sign in to comment.