[bugfix-342] remove sonarcloud code smell

This commit is contained in:
MathieuG-P
2023-11-10 20:20:15 +01:00
parent 07600507f3
commit b520c4463c
+1 -1
View File
@@ -67,7 +67,7 @@ export class WindowManagerService {
}
public openWindow(url: AppWindow, options?: BrowserWindowConstructorOptions): Promise<BrowserWindow> {
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);
}