diff --git a/package.json b/package.json index 8afbdd3eb..c02de65e8 100644 --- a/package.json +++ b/package.json @@ -99,9 +99,6 @@ "vitepress": "^1.5.0", "vue-tsc": "^2.1.10" }, - "resolutions": { - "canvas": "npm:empty-npm-package@1.0.0" - }, "browserslist": [ "Electron >= 33" ], diff --git a/src-electron/electron-preload.ts b/src-electron/electron-preload.ts index bc28098ea..9611c9470 100644 --- a/src-electron/electron-preload.ts +++ b/src-electron/electron-preload.ts @@ -16,7 +16,6 @@ import { getVideoDuration, parseMediaFile, pathToFileURL, - // readDirectory, } from './preload/fs'; import { invoke, listen, removeAllIpcListeners, send } from './preload/ipc'; import { initScreenListeners } from './preload/screen'; diff --git a/src-electron/main/window/window-website.ts b/src-electron/main/window/window-website.ts index 16c2d1409..4dfac15d2 100644 --- a/src-electron/main/window/window-website.ts +++ b/src-electron/main/window/window-website.ts @@ -133,6 +133,7 @@ export async function createWebsiteWindow(lang?: string) { ); websiteWindow.on('close', () => { + websiteWindow?.webContents.setZoomFactor(1); sendToWindow(mainWindow, 'websiteWindowClosed'); }); websiteWindow.on('closed', () => {