diff --git a/src/lib/invoker.ts b/src/lib/invoker.ts index dd4e004..8137bc4 100644 --- a/src/lib/invoker.ts +++ b/src/lib/invoker.ts @@ -140,10 +140,10 @@ async function convertFileSrc(filePath: string) { return `${ENDPOINT}/output/${filePath}`; } +const config = (await invoke("get_config")) as any; const coverCache: Map = new Map(); async function get_cover(coverType: string, coverPath: string) { - const config = (await invoke("get_config")) as any; if (TAURI_ENV) { if (coverType === "cache") { const absolutePath = `${config.cache}/${coverPath}`;