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