From d57e155e639c1e5f331d1289c601090875924643 Mon Sep 17 00:00:00 2001 From: AvaLilac Date: Thu, 26 Feb 2026 06:47:00 -0500 Subject: [PATCH] Update main.ts 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 {} }); };