Skip to content

Commit

Permalink
fix: metamask output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
matstyler committed Jul 18, 2024
1 parent ebc419d commit 8efa182
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wallets/metamask/src/prepareExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export async function prepareExtension(forceCache = true) {
if (forceCache) {
outputDir = ensureCacheDirExists()
} else {
outputDir = path.resolve('./', 'downloads')
outputDir = process.platform === 'win32' ? `file:\\\\\\${outputDir}` : outputDir
outputDir = process.platform === 'win32' ? `file:\\\\\\${outputDir}` : path.resolve('./', 'downloads')

if (!(await fs.exists(outputDir))) {
fs.mkdirSync(outputDir)
Expand Down

0 comments on commit 8efa182

Please sign in to comment.