From 54e657275466294986b6c4977941396e32c03eba Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 19 Jul 2021 16:08:55 +0100 Subject: [PATCH] Use MCHeads instead of Crafatar (#181) * Update landing.js This changes the Skin/Avatar server displayed on the landing page to one that displays the hat layer which then features the skin correctly. * Create landing.js This changes the Skin/Avatar server displayed on the landing page to one that displays the hat layer which then features the skin correctly. * Updated remaining Crafatar URLS Changed Crafatar URLS to matching mc-heads url. --- app/assets/js/scripts/landing.js | 4 ++-- app/assets/js/scripts/overlay.js | 2 +- app/assets/js/scripts/settings.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index a31db29..81b01ba 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -130,7 +130,7 @@ function updateSelectedAccount(authUser){ username = authUser.displayName } if(authUser.uuid != null){ - document.getElementById('avatarContainer').style.backgroundImage = `url('https://crafatar.com/renders/body/${authUser.uuid}')` + document.getElementById('avatarContainer').style.backgroundImage = `url('https://mc-heads.net/body/${authUser.uuid}/right')` } } user_text.innerHTML = username @@ -1143,4 +1143,4 @@ function loadNews(){ }) }) }) -} \ No newline at end of file +} diff --git a/app/assets/js/scripts/overlay.js b/app/assets/js/scripts/overlay.js index ed70404..22d81d6 100644 --- a/app/assets/js/scripts/overlay.js +++ b/app/assets/js/scripts/overlay.js @@ -299,7 +299,7 @@ function populateAccountListings(){ let htmlString = '' for(let i=0; i - +
${accounts[i].displayName}
` } diff --git a/app/assets/js/scripts/settings.js b/app/assets/js/scripts/settings.js index 9307b21..4a1997f 100644 --- a/app/assets/js/scripts/settings.js +++ b/app/assets/js/scripts/settings.js @@ -444,7 +444,7 @@ function populateAuthAccounts(){ const acc = authAccounts[val] authAccountStr += `
- ${acc.displayName} + ${acc.displayName}