Skip to content

Commit

Permalink
shortcut: input is no longer a direct descendent (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpickett authored Feb 2, 2022
1 parent 5df3c58 commit c39be17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/content/shortcut.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ togglbutton.render('.story-state:not(.toggl)', { observe: true }, function (
elem = elem.parentNode.parentNode.parentNode;

const getDescription = function () {
const storyId = $('.story-id > input', elem).value;
const storyId = $('.story-id input', elem).value;
const title = $('h2.story-name', elem).textContent;

return `#${storyId} - ${title}`;
Expand All @@ -26,6 +26,5 @@ togglbutton.render('.story-state:not(.toggl)', { observe: true }, function (

wrap.className = 'attribute editable-attribute toggl-button-shortcut-wrapper';
wrap.appendChild(link);

element.parentNode.insertBefore(wrap, element.nextSibling);
});

0 comments on commit c39be17

Please sign in to comment.