Inject category script into main window

Signed-off-by: AvaLilac <amyshimplays@gmail.com>
This commit is contained in:
AvaLilac 2026-03-18 12:01:04 -04:00 committed by GitHub
parent eff6fe57f9
commit 638df6aafd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);