Skip to content

Commit

Permalink
fix(content): detect issue label
Browse files Browse the repository at this point in the history
  • Loading branch information
sanemat committed Nov 3, 2019
1 parent 1b5a5f4 commit 74921cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/scripts/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
}

var isWipTag = false;
$container.find('#discussion_bucket .labels .label').each(function(i, elem) {
isWipTag = isWipTag || $(elem).text().match(wipTagRegex);
});
for (const label of container.querySelectorAll('.js-issue-labels .IssueLabel')) {
isWipTag = isWipTag || label.textContent.match(wipTagRegex);
}

disabled = (isWipTitle || isWipTaskList || isSquashCommits || isWipTag);

Expand Down

0 comments on commit 74921cc

Please # to comment.