Skip to content

Commit

Permalink
Made popout-square check more specific (badges#3760)
Browse files Browse the repository at this point in the history
  • Loading branch information
PyvesB authored Jul 23, 2019
1 parent 8fa0ab1 commit 883b025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gh-badges/lib/make-badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.exports = function makeBadge({
}

if (!(template in templates)) {
if (template && template.endsWith('-square')) {
if (template === 'popout-square') {
template = 'flat-square'
} else {
template = 'flat'
Expand Down

0 comments on commit 883b025

Please sign in to comment.