fix: electron-vite setting

Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
JellyBrick
2023-11-26 23:25:57 +09:00
parent 3f8030a9c5
commit 3a1b77ebd8
2 changed files with 11 additions and 15 deletions

View File

@ -363,7 +363,7 @@ async function createMainWindow() {
}, 600);
}
app.on('render-process-gone', (event, webContents, details) => {
app.on('render-process-gone', (_event, _webContents, details) => {
showUnresponsiveDialog(win, details);
});
@ -431,7 +431,7 @@ async function createMainWindow() {
return win;
}
app.once('browser-window-created', (event, win) => {
app.once('browser-window-created', (_event, win) => {
if (config.get('options.overrideUserAgent')) {
// User agents are from https://developers.whatismybrowser.com/useragents/explore/
const originalUserAgent = win.webContents.userAgent;