Skip to content

Commit

Permalink
fix: bug introduced by PR
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Dec 1, 2023
1 parent dadd7f7 commit 7e57304
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7e57304

Please sign in to comment.