Update main.ts
Signed-off-by: AvaLilac <amyshimplays@gmail.com>
This commit is contained in:
parent
5c3b0073e2
commit
9712f52e63
1 changed files with 5 additions and 0 deletions
|
|
@ -39,9 +39,14 @@ const loadInject = () => {
|
||||||
const injectPath = path.join(__dirname, "inject.js");
|
const injectPath = path.join(__dirname, "inject.js");
|
||||||
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 favPath = path.join(__dirname, "aviafavsystem.js");
|
const favPath = path.join(__dirname, "aviafavsystem.js");
|
||||||
const favCode = fs.readFileSync(favPath, "utf8");
|
const favCode = fs.readFileSync(favPath, "utf8");
|
||||||
await mainWindow.webContents.executeJavaScript(favCode, true);
|
await mainWindow.webContents.executeJavaScript(favCode, true);
|
||||||
|
|
||||||
|
const pluginPath = path.join(__dirname, "pluginsupport.js");
|
||||||
|
const pluginCode = fs.readFileSync(pluginPath, "utf8");
|
||||||
|
await mainWindow.webContents.executeJavaScript(pluginCode, true);
|
||||||
} catch {}
|
} catch {}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue