renderizando projetos no mmpCreator utilizando o lmms
Deploy / Deploy (push) Successful in 1m56s
Details
Deploy / Deploy (push) Successful in 1m56s
Details
This commit is contained in:
parent
713673a6fe
commit
b26955e03d
|
|
@ -27,21 +27,6 @@ window.ROOM_NAME = ROOM_NAME;
|
||||||
|
|
||||||
const PROJECT_NAME = new URLSearchParams(window.location.search).get("project");
|
const PROJECT_NAME = new URLSearchParams(window.location.search).get("project");
|
||||||
|
|
||||||
const chosenFormat = allowed.has(fmt) ? fmt : "wav";
|
|
||||||
const body = {
|
|
||||||
roomName: ROOM_NAME || null,
|
|
||||||
chosenFormat,
|
|
||||||
name:
|
|
||||||
appState.global?.currentBeatBasslineName ||
|
|
||||||
appState.global?.projectName ||
|
|
||||||
"projeto",
|
|
||||||
};
|
|
||||||
|
|
||||||
// ✅ Modo local: manda o XML direto
|
|
||||||
if (!ROOM_NAME) {
|
|
||||||
body.xml = generateXmlFromStateExported();
|
|
||||||
}
|
|
||||||
|
|
||||||
// --- LÓGICA DE INICIALIZAÇÃO ---
|
// --- LÓGICA DE INICIALIZAÇÃO ---
|
||||||
|
|
||||||
// Função autoinvocada assíncrona para gerenciar o carregamento inicial
|
// Função autoinvocada assíncrona para gerenciar o carregamento inicial
|
||||||
|
|
@ -153,6 +138,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
if (!fmt) return;
|
if (!fmt) return;
|
||||||
|
|
||||||
const allowed = new Set(["wav", "mp3", "ogg", "flac"]);
|
const allowed = new Set(["wav", "mp3", "ogg", "flac"]);
|
||||||
|
const chosenFormat = allowed.has(fmt) ? fmt : "wav";
|
||||||
|
|
||||||
const icon = renderAudioBtn.querySelector("i");
|
const icon = renderAudioBtn.querySelector("i");
|
||||||
const oldIconClass = icon?.className;
|
const oldIconClass = icon?.className;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue