CODEX - Moved the upload binary to the Archetype
This commit is contained in:
@@ -556,6 +556,10 @@ export default function MelodyDetail() {
|
||||
|
||||
const handleDownload = async (e) => {
|
||||
e.preventDefault();
|
||||
if (binaryUrl.startsWith("http")) {
|
||||
window.open(binaryUrl, "_blank", "noopener,noreferrer");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const token = localStorage.getItem("access_token");
|
||||
let res = null;
|
||||
|
||||
Reference in New Issue
Block a user