kopia lustrzana https://github.com/badgen/badgen.net
Allow specifying an empty label (#45)
rodzic
5162af0d63
commit
cb7fc46745
|
@ -10,7 +10,7 @@ module.exports = function serveBadge (req, res, options = {}) {
|
|||
const { style, label, emoji, list, icon } = req.query
|
||||
|
||||
const badgenParams = {
|
||||
subject: String(label || subject),
|
||||
subject: typeof label !== 'undefined' ? label : subject,
|
||||
status: String(list ? status.replace(/,/g, ' | ') : status),
|
||||
color: color,
|
||||
style: style || hostStyle,
|
||||
|
|
Ładowanie…
Reference in New Issue