mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
refactor: sonar issues
This commit is contained in:
parent
13eeb2cee7
commit
afcd99a6fd
5 changed files with 3 additions and 24 deletions
|
|
@ -6,7 +6,6 @@ const injectCSS = async (
|
|||
cssString: string
|
||||
) => {
|
||||
WindowManager.mainWindow?.webContents.send("css-injected", cssString);
|
||||
return;
|
||||
};
|
||||
|
||||
registerEvent("injectCSS", injectCSS);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import { AuthPage } from "@shared";
|
|||
export class WindowManager {
|
||||
public static mainWindow: Electron.BrowserWindow | null = null;
|
||||
|
||||
private static editorWindows: Map<string, BrowserWindow> = new Map();
|
||||
private static readonly editorWindows: Map<string, BrowserWindow> = new Map();
|
||||
|
||||
private static loadMainWindowURL(hash = "") {
|
||||
// HMR for renderer base on electron-vite cli.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue