From f535e1249c9f295269e3bf5bbbe4a9c9d3c8d04c Mon Sep 17 00:00:00 2001 From: AvaLilac Date: Thu, 26 Feb 2026 08:06:03 -0500 Subject: [PATCH] Update main.ts (fixed Signed-off-by: AvaLilac --- src/main.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index fdc1670..d020489 100644 --- a/src/main.ts +++ b/src/main.ts @@ -37,8 +37,11 @@ const loadInject = () => { mainWindow.webContents.on("dom-ready", async () => { try { const injectPath = path.join(__dirname, "inject.js"); - const code = fs.readFileSync(injectPath, "utf8"); - await mainWindow.webContents.executeJavaScript(code, true); + const injectCode = fs.readFileSync(injectPath, "utf8"); + await mainWindow.webContents.executeJavaScript(injectCode, true); + const favPath = path.join(__dirname, "aviafavsystem.js"); + const favCode = fs.readFileSync(favPath, "utf8"); + await mainWindow.webContents.executeJavaScript(favCode, true); } catch {} }); };