kopia lustrzana https://github.com/badgen/badgen.net
fix: prevent miss spelled scale arg
rodzic
ce08e2308d
commit
4996986ef9
|
@ -28,7 +28,7 @@ export default function (req, res, options: ServeBadgeOptions) {
|
||||||
style: query.style || process.env.BADGE_STYLE,
|
style: query.style || process.env.BADGE_STYLE,
|
||||||
icon: _icon.src,
|
icon: _icon.src,
|
||||||
iconWidth: iconWidth || _icon.width,
|
iconWidth: iconWidth || _icon.width,
|
||||||
scale: scale && parseInt(scale, 10),
|
scale: scale && parseInt(scale, 10) || 1,
|
||||||
})
|
})
|
||||||
|
|
||||||
const staleControl = `stale-while-revalidate=604800, stale-if-error=604800`
|
const staleControl = `stale-while-revalidate=604800, stale-if-error=604800`
|
||||||
|
|
Ładowanie…
Reference in New Issue