Skip to content

Commit

Permalink
Correct selector and change order
Browse files Browse the repository at this point in the history
Original selector was stupidly incorrect. Also, as we're now inserting *after*, need to reverse the order in which we insert these, otherwise the modal will come before the button, which messes up scripting later to close it
  • Loading branch information
patrickhlauke committed Jul 8, 2024
1 parent e86fc44 commit debdeb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ function initializeExtension() {
// classic structure
$(kaminoButton).insertBefore($('.sidebar-assignee'))
$(modal).insertBefore($('.sidebar-assignee'))
} else if ($('.issue-viewer-metadata-pane > h2').length) {
} else if ($('[data-testid="issue-viewer-metadata-pane"] > h2').length) {
// new issue/PR experience
$(kaminoButton).insertAfter($('.issue-viewer-metadata-pane > h2'))
$(modal).insertAfter($('.issue-viewer-metadata-pane > h2'))
$(modal).insertAfter($('[data-testid="issue-viewer-metadata-pane"] > h2'))
$(kaminoButton).insertAfter($('[data-testid="issue-viewer-metadata-pane"] > h2'))
}

const kaminoButtonExists = $('.kaminoButton').length > 0
Expand Down

0 comments on commit debdeb4

Please sign in to comment.