Skip to content

Commit

Permalink
chore: update dirname to globalthis
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommytrg committed Feb 14, 2024
1 parent 84a0c1a commit 2eeb7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import kill from 'tree-kill'
import { Status, STATUS_PATH } from '../constants'
import { WalletManager } from '../walletManager'

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
globalThis.__filename = fileURLToPath(import.meta.url)
globalThis.__dirname = dirname(__filename)
process.env.DIST_ELECTRON = join(__dirname, '..')
process.env.DIST = join(process.env.DIST_ELECTRON, '../dist')
process.env.PUBLIC = app.isPackaged
Expand Down

0 comments on commit 2eeb7d8

Please sign in to comment.