diff --git a/wallets/metamask/src/prepareExtension.ts b/wallets/metamask/src/prepareExtension.ts index 955a2001e..47ae2c08f 100644 --- a/wallets/metamask/src/prepareExtension.ts +++ b/wallets/metamask/src/prepareExtension.ts @@ -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)