Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { App } from 'electron'; import path from 'path'; export function getUserDataPath(app: App) { // DO NOT CHANGE THIS TO LEATHER, WILL CAUSE BREAKING CHANGES const appId = 'so.hiro.StacksWallet'; const appData = app.getPath('appData'); const network = process.env.STX_NETWORK === 'mainnet' ? '' : 'Testnet'; Iif (process.env.NODE_ENV === 'development') { const devName = `${appId}${network}Dev`; return path.join(appData, devName); } Iif (process.env.NODE_ENV === 'test') { const devName = `${appId}${network}Test`; return path.join(appData, devName); } const prodName = `${appId}${network}`; return path.join(appData, prodName); } |