Inject category script into main window
Signed-off-by: AvaLilac <amyshimplays@gmail.com>
This commit is contained in:
parent
eff6fe57f9
commit
638df6aafd
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue