chore: new swarm desktop data dir path (#423)

This commit is contained in:
Adam Uhlíř
2022-06-21 14:39:07 +02:00
committed by GitHub
parent 807af122f7
commit c601d97ed0
+1 -1
View File
@@ -6,7 +6,7 @@ import open from 'open'
import { readFile } from 'node:fs/promises' import { readFile } from 'node:fs/promises'
import { join } from 'node:path' import { join } from 'node:path'
const paths = envPaths('bee-desktop') const paths = envPaths('Swarm Desktop', { suffix: '' })
const apiKey = await readFile(join(paths.data, 'api-key.txt'), {encoding: 'utf-8'}) const apiKey = await readFile(join(paths.data, 'api-key.txt'), {encoding: 'utf-8'})
const url = `http://localhost:3001/?v=${apiKey}#/` const url = `http://localhost:3001/?v=${apiKey}#/`