diff --git a/src/content/drupal.js b/src/content/drupal.js index 3ac81fbd2..44be5d839 100644 --- a/src/content/drupal.js +++ b/src/content/drupal.js @@ -4,9 +4,14 @@ togglbutton.render( 'body.node-type-project-issue #tabs ul:not(.toggl)', {}, function (elem) { + const getDescription = () => { + const descriptionElem = document.getElementById('page-subtitle'); + return descriptionElem ? descriptionElem.textContent.trim() : ''; + }; + const link = togglbutton.createTimerLink({ className: 'drupalorg', - description: elem.textContent + description: getDescription }); elem.appendChild(document.createElement('li').appendChild(link));