Skip to content

Commit

Permalink
Drop unused downloadsPath
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Mar 11, 2022
1 parent ef4435c commit c4e1322
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/main.ts
Expand Up @@ -333,7 +333,6 @@ function prepareUrl(
serverTrustRoot: config.get<string>('serverTrustRoot'),
appStartInitialSpellcheckSetting,
userDataPath: app.getPath('userData'),
downloadsPath: app.getPath('downloads'),
homePath: app.getPath('home'),
crashDumpsPath: app.getPath('crashDumps'),
...moreKeys,
Expand Down
4 changes: 2 additions & 2 deletions ts/windows/context.ts
Expand Up @@ -53,7 +53,7 @@ export type SignalContextType = {
getEnvironment: () => string;
getNodeVersion: () => string;
getVersion: () => string;
getPath: (name: 'userData' | 'home' | 'downloads') => string;
getPath: (name: 'userData' | 'home') => string;
i18n: LocalizerType;
log: LoggerType;
renderWindow?: () => void;
Expand All @@ -72,7 +72,7 @@ export const SignalContext: SignalContextType = {
getEnvironment,
getNodeVersion: (): string => String(config.node_version),
getVersion: (): string => String(config.version),
getPath: (name: 'userData' | 'home' | 'downloads'): string => {
getPath: (name: 'userData' | 'home'): string => {
return String(config[`${name}Path`]);
},
i18n: setupI18n(locale, localeMessages),
Expand Down

0 comments on commit c4e1322

Please sign in to comment.