chore: update types

This commit is contained in:
草鞋没号 committed 2023-08-02 11:01:49 +08:00
1 parent 4bb103c014
commit d548009325
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -6,6 +6,6 @@ declare namespace NodeJS {
DIST_ELECTRON: string
DIST: string
/** /dist/ or /public/ */
PUBLIC: string
VITE_PUBLIC: string
}
}
+1 -1
View File
@@ -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