diff --git a/src/main/services/window-manager.service.ts b/src/main/services/window-manager.service.ts index c4d2f7e5..0450eb40 100644 --- a/src/main/services/window-manager.service.ts +++ b/src/main/services/window-manager.service.ts @@ -67,7 +67,7 @@ export class WindowManagerService { } public openWindow(url: AppWindow, options?: BrowserWindowConstructorOptions): Promise { - const windowType = url.split("?")[0] as AppWindow; + const windowType = url.split("?")[0]; const window = new BrowserWindow({ ...(this.appWindowsOptions[windowType] ?? {}), ...this.baseWindowOption, ...options }); return this.handleNewWindow(url, window); }