finished interface for TidalController and moved most domLogic to the domController

This commit is contained in:
2025-03-09 14:47:30 +01:00
parent aed40ec4ef
commit f553fe98e7
11 changed files with 226 additions and 194 deletions

View File

@@ -0,0 +1,15 @@
import { downloadFile } from "../../scripts/download";
import { Logger } from "../logger";
export const downloadIcon = async (imagePath: string, destination: string): Promise<string> => {
if (imagePath.startsWith("http")) {
try {
return await downloadFile(imagePath, destination);
} catch (error) {
Logger.log("Downloading file failed", { error });
return "";
}
}
return "";
};