Skip to content

Commit

Permalink
fix(RR): Show comment reasons in new Reddit (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Gustavsson authored May 17, 2020
1 parent aa36b5c commit a64e99e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extension/data/modules/removalreasons.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ function removalreasons () {
if ($button.hasClass('tb-add-removal-reason')) {
thingID = $button.attr('data-id');
thingSubreddit = $button.attr('data-subreddit');
isComment = $button.closest('.tb-frontend-container').data('tb-type') === 'comment';
} else {
const $parent = $button.closest('.Post');
const postDetails = $parent.find('.tb-frontend-container[data-tb-type="post"]').data('tb-details');
Expand Down

0 comments on commit a64e99e

Please sign in to comment.