chore: remove globalThis.__dirname
This commit is contained in:
1 parent
6d0b65c5c4
commit
f3e8e2cf68
1 file changed
+3
-2
@@ -1,11 +1,12 @@
|
||||
import { app, BrowserWindow, shell, ipcMain } from 'electron'
|
||||
import { createRequire } from 'node:module'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import path from 'node:path'
|
||||
import os from 'node:os'
|
||||
import { update } from './update'
|
||||
|
||||
globalThis.__filename = fileURLToPath(import.meta.url)
|
||||
globalThis.__dirname = path.dirname(__filename)
|
||||
const require = createRequire(import.meta.url)
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
// The built directory structure
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user