Skip to content

Commit

Permalink
fix path issues on windows w/o breaking osx (#25041)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnojima committed Jun 6, 2022
1 parent 25e1d44 commit 0ee8d30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/constants/platform.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ const uses24HourClockF = () => {
}
}
export const uses24HourClock = uses24HourClockF()
export const getAssetPath = (...a: Array<string>) => [KB2.constants.assetRoot, ...a].join('/')
export const getAssetPath = (...a: Array<string>) => KB2.constants.assetRoot + a.join('/')
2 changes: 1 addition & 1 deletion shared/desktop/app/kb2-impl.desktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (pathSep !== '/' && pathSep !== '\\') {
}

const kb2: KB2['constants'] = {
assetRoot: path.resolve(__DEV__ ? '.' : app.getAppPath()),
assetRoot: path.resolve(__DEV__ ? '.' : app.getAppPath()).replaceAll('\\', '/') + '/',
configOverload: {}, // filled in later
dokanPath: path.resolve(env.LOCALAPPDATA ?? '', 'Keybase', 'DokanSetup_redist.exe'),
downloadFolder: path.join(os.homedir(), 'Downloads'),
Expand Down

0 comments on commit 0ee8d30

Please sign in to comment.