v5.7-beta1

This commit is contained in:
afkarxyz
2025-11-22 11:46:36 +07:00
parent a49bb560bd
commit 10236f00c6
6 changed files with 230 additions and 58 deletions
+2 -5
View File
@@ -24,17 +24,14 @@ export const DEFAULT_SETTINGS: Settings = {
operatingSystem: "Windows"
};
// TODO: add mac/linux defaults
const DEFAULT_PATH : string = "C:\\Users\\Public\\Music";
async function fetchDefaultPath(): Promise<string> {
try {
const data = await GetDefaults();
return data.downloadPath || DEFAULT_PATH;
return data.downloadPath || "";
} catch (error) {
console.error("Failed to fetch default path:", error);
return "";
}
return DEFAULT_PATH;
}
const SETTINGS_KEY = "spotiflac-settings";