kopia lustrzana https://github.com/badgen/badgen.net
Decode uri components in badge text
rodzic
31f0ca54fd
commit
978359074e
|
@ -44,6 +44,9 @@ export function badgenServe (handlers: BadgenServeHandlers): Function {
|
|||
color: 'grey'
|
||||
}
|
||||
|
||||
params.subject = decodeURIComponent(params.subject)
|
||||
params.status = decodeURIComponent(params.status)
|
||||
|
||||
if (query.style === undefined && req.headers.host.startsWith('flat.')) {
|
||||
query.style = 'flat'
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue