8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
globalThis.__dirname
1 parent 3d4395f commit 031bb81Copy full SHA for 031bb81
electron/main/index.ts
@@ -4,8 +4,8 @@ import { dirname, join } from 'node:path'
4
import { fileURLToPath } from 'node:url'
5
import { update } from './update'
6
7
-const __filename = fileURLToPath(import.meta.url)
8
-const __dirname = dirname(__filename)
+globalThis.__filename = fileURLToPath(import.meta.url)
+globalThis.__dirname = dirname(__filename)
9
10
// The built directory structure
11
//
0 commit comments