mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
Merge branch 'master' of github.com:Jake0oo0/crafatar
This commit is contained in:
commit
81bc380b0f
@ -33,8 +33,8 @@ router.get("/:uuid.:ext?", function(req, res) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// strip dashes
|
// strip dashes, to lower case
|
||||||
uuid = uuid.replace(/-/g, "");
|
uuid = uuid.replace(/-/g, "").toLowerCase();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
helpers.get_avatar(uuid, helm, size, function(err, status, image, hash) {
|
helpers.get_avatar(uuid, helm, size, function(err, status, image, hash) {
|
||||||
|
|||||||
@ -18,8 +18,8 @@ router.get("/:uuid.:ext?", function(req, res) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// strip dashes
|
// strip dashes, to lower case
|
||||||
uuid = uuid.replace(/-/g, "");
|
uuid = uuid.replace(/-/g, "").toLowerCase();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
helpers.get_skin(uuid, function(err, hash, image) {
|
helpers.get_skin(uuid, function(err, hash, image) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user