chore: update types
This commit is contained in:
parent
4bb103c014
commit
d548009325
|
@ -6,6 +6,6 @@ declare namespace NodeJS {
|
|||
DIST_ELECTRON: string
|
||||
DIST: string
|
||||
/** /dist/ or /public/ */
|
||||
PUBLIC: string
|
||||
VITE_PUBLIC: string
|
||||
}
|
||||
}
|
|
@ -44,7 +44,7 @@ const indexHtml = join(process.env.DIST, 'index.html')
|
|||
async function createWindow() {
|
||||
win = new BrowserWindow({
|
||||
title: 'Main window',
|
||||
icon: join(process.env.VITE_PUBLIC!, 'favicon.ico'),
|
||||
icon: join(process.env.VITE_PUBLIC, 'favicon.ico'),
|
||||
webPreferences: {
|
||||
preload,
|
||||
// Warning: Enable nodeIntegration and disable contextIsolation is not secure in production
|
||||
|
|
Loading…
Reference in New Issue