renderizando projetos no mmpCreator utilizando o lmms
Deploy / Deploy (push) Successful in 1m58s
Details
Deploy / Deploy (push) Successful in 1m58s
Details
This commit is contained in:
parent
ff7a0b0822
commit
713673a6fe
|
|
@ -27,6 +27,16 @@ 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
|
// ✅ Modo local: manda o XML direto
|
||||||
if (!ROOM_NAME) {
|
if (!ROOM_NAME) {
|
||||||
body.xml = generateXmlFromStateExported();
|
body.xml = generateXmlFromStateExported();
|
||||||
|
|
@ -143,7 +153,6 @@ 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