Update main.ts
Signed-off-by: AvaLilac <amyshimplays@gmail.com>
This commit is contained in:
parent
ccf04bfce9
commit
d57e155e63
1 changed files with 5 additions and 2 deletions
|
|
@ -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 {}
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue