Change cover image mime type
(not sure if this actually matters)
This commit is contained in:
parent
5024f342d5
commit
5fe7029b6e
2
index.js
2
index.js
@ -86,7 +86,7 @@ let duration = 0;
|
|||||||
async function updateMapInfo(data) {
|
async function updateMapInfo(data) {
|
||||||
const custom = data.level_id.startsWith("custom_level_");
|
const custom = data.level_id.startsWith("custom_level_");
|
||||||
const wip = custom && data.level_id.endsWith("WIP");
|
const wip = custom && data.level_id.endsWith("WIP");
|
||||||
cover.src = data.coverRaw ? `data:image/png;base64,${data.coverRaw}` : "images/unknown.svg";
|
cover.src = data.coverRaw ? `data:image/jpeg;base64,${data.coverRaw}` : "images/unknown.svg";
|
||||||
title.textContent = data.name || "";
|
title.textContent = data.name || "";
|
||||||
subTitle.textContent = data.sub_name || "";
|
subTitle.textContent = data.sub_name || "";
|
||||||
artist.textContent = data.artist || "";
|
artist.textContent = data.artist || "";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user