Update main.ts
Signed-off-by: AvaLilac <amyshimplays@gmail.com>
This commit is contained in:
parent
76bbebec1b
commit
8b81078429
1 changed files with 4 additions and 0 deletions
|
|
@ -41,6 +41,10 @@ const loadInject = () => {
|
||||||
const injectCode = fs.readFileSync(injectPath, "utf8");
|
const injectCode = fs.readFileSync(injectPath, "utf8");
|
||||||
await mainWindow.webContents.executeJavaScript(injectCode, true);
|
await mainWindow.webContents.executeJavaScript(injectCode, true);
|
||||||
|
|
||||||
|
const localPluginsPath = path.join(__dirname, "LocalPlugins.js");
|
||||||
|
const localPluginsCode = fs.readFileSync(localPluginsPath, "utf8");
|
||||||
|
await mainWindow.webContents.executeJavaScript(localPluginsCode, true);
|
||||||
|
|
||||||
const categoryPath = path.join(__dirname, "aviaclientcategory.js");
|
const categoryPath = path.join(__dirname, "aviaclientcategory.js");
|
||||||
const categoryCode = fs.readFileSync(categoryPath, "utf8");
|
const categoryCode = fs.readFileSync(categoryPath, "utf8");
|
||||||
await mainWindow.webContents.executeJavaScript(categoryCode, true);
|
await mainWindow.webContents.executeJavaScript(categoryCode, true);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue