kopia lustrzana https://github.com/badgen/badgen.net
Support BADGE_STYLE env
rodzic
0dccaa70f4
commit
a5dbf95094
|
@ -47,7 +47,9 @@ export function badgenServe (handlers: BadgenServeHandlers): Function {
|
|||
params.subject = decodeURIComponent(params.subject)
|
||||
params.status = decodeURIComponent(params.status)
|
||||
|
||||
if (query.style === undefined && req.headers.host.startsWith('flat.')) {
|
||||
if (query.style === undefined
|
||||
&& process.env.BADGE_STYLE === 'flat'
|
||||
|| req.headers.host.startsWith('flat.')) {
|
||||
query.style = 'flat'
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue