fix: bug introduced by PR

This commit is contained in:
Johannes Millan 2023-12-01 16:57:39 +01:00
parent dadd7f77bd
commit 7e5730405c

View file

@ -6,12 +6,10 @@ import { IS_ELECTRON } from '../../../app.constants';
const backupPath =
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
(IS_ELECTRON &&
`${getElectronRemoteModule()!.app.getPath('userData')}` + process.platform ==
'linux') ||
process.platform === 'darwin'
? `/backups`
: `\\backups`;
IS_ELECTRON &&
`${getElectronRemoteModule()!.app.getPath('userData')}${
navigator?.userAgent?.search('Windows') ? '\\' : '/'
}backups`;
export const AUTOMATIC_BACKUPS_FORM: ConfigFormSection<LocalBackupConfig> = {
title: T.GCF.AUTO_BACKUPS.TITLE,