Skip to content

Commit

Permalink
fix(dixa): add title to description
Browse files Browse the repository at this point in the history
  • Loading branch information
Nederby committed Jan 9, 2022
1 parent 591493c commit 56c5987
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/content/dixa.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ togglbutton.render(
return subdomain;
}

const getTitle = () => {
const title = document.querySelector('.conversation-view__main [class^=conversationHeader__] [class^=headline__] p').textContent;
return title;
};

// Create timer link element
const link = togglbutton.createTimerLink({
description: getDescription,
description: getDescription + getTitle,
buttonType: 'minimal',
projectName: getProject,
className: 'dixa'
Expand Down

0 comments on commit 56c5987

Please sign in to comment.