forked from spacebar/SplatNet
fix: mii renderer
This commit is contained in:
parent
9e73da3e3f
commit
8531693c2e
4 changed files with 4 additions and 4 deletions
|
|
@ -124,7 +124,7 @@ window.loadHeader(async function(headerContainer) {
|
||||||
const parsedName = miiBlob ? extractMiiName(miiBlob) : null;
|
const parsedName = miiBlob ? extractMiiName(miiBlob) : null;
|
||||||
const name = parsedName || (finalData.mii && finalData.mii.name) || finalData.nickname || finalData.user_id || finalData.mii_name || "User";
|
const name = parsedName || (finalData.mii && finalData.mii.name) || finalData.nickname || finalData.user_id || finalData.mii_name || "User";
|
||||||
|
|
||||||
const miiImgUrl = miiBlob ? `https://mii-renderer.spfn.net/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270` : "";
|
const miiImgUrl = miiBlob ? `https://mii-renderer.bloxerhd.co.uk/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270` : "";
|
||||||
|
|
||||||
const sidebarName = document.getElementById('mii-name');
|
const sidebarName = document.getElementById('mii-name');
|
||||||
const sidebarImg = document.getElementById('mii-img');
|
const sidebarImg = document.getElementById('mii-img');
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ window.loadHeader(function(headerContainer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (imgEl && miiBlob) {
|
if (imgEl && miiBlob) {
|
||||||
imgEl.src = `https://mii-renderer.spfn.net/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270`;
|
imgEl.src = `https://mii-renderer.bloxerhd.co.uk/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270`;
|
||||||
imgEl.style.display = 'block';
|
imgEl.style.display = 'block';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ window.loadHeader(async function(headerContainer) {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getMiiRenderUrl = (data) => {
|
const getMiiRenderUrl = (data) => {
|
||||||
return `https://mii-renderer.spfn.net/miis/image.png?data=${encodeURIComponent(data)}&type=face&width=270&resourceType=very_high`;
|
return `https://mii-renderer.bloxerhd.co.uk/miis/image.png?data=${encodeURIComponent(data)}&type=face&width=270&resourceType=very_high`;
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderData = (data) => {
|
const renderData = (data) => {
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ window.loadHeader(async function(headerContainer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (imgEl && miiBlob) {
|
if (imgEl && miiBlob) {
|
||||||
imgEl.src = `https://mii-renderer.spfn.net/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270`;
|
imgEl.src = `https://mii-renderer.bloxerhd.co.uk/miis/image.png?data=${encodeURIComponent(miiBlob)}&type=face&width=270`;
|
||||||
imgEl.style.display = 'block';
|
imgEl.style.display = 'block';
|
||||||
}
|
}
|
||||||
updateTwitterUI();
|
updateTwitterUI();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue