v5.7-beta1
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user