Fix download folder for MAS (#2063)

This commit is contained in:
Devin Binnie 2022-04-19 20:16:58 -04:00 committed by GitHub
parent 7ec0b270cf
commit c47da0de29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,11 @@ import os from 'os';
import {ConfigV3} from 'types/config';
export const getDefaultDownloadLocation = (): string => {
return path.join(os.homedir(), 'Downloads');
// eslint-disable-next-line no-undef
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const homePath = __IS_MAC_APP_STORE__ ? path.join(os.homedir(), '../../../../') : os.homedir();
return path.join(homePath, 'Downloads');
};
const defaultPreferences: ConfigV3 = {