From 638df6aafd91a8d6adb7a639f72879bf7d37a3f3 Mon Sep 17 00:00:00 2001 From: AvaLilac Date: Wed, 18 Mar 2026 12:01:04 -0400 Subject: [PATCH] Inject category script into main window Signed-off-by: AvaLilac --- src/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.ts b/src/main.ts index c2b0338..aea055f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -41,6 +41,10 @@ const loadInject = () => { const injectCode = fs.readFileSync(injectPath, "utf8"); await mainWindow.webContents.executeJavaScript(injectCode, true); + const categoryPath = path.join(__dirname, "aviaclientcategory.js"); + const categoryCode = fs.readFileSync(categoryPath, "utf8"); + await mainWindow.webContents.executeJavaScript(categoryCode, true); + const themesPath = path.join(__dirname, "themes.js"); const themesCode = fs.readFileSync(themesPath, "utf8"); await mainWindow.webContents.executeJavaScript(themesCode, true);