Revert "Add check for existing preload script path before overriding"

This reverts commit 497e6aa423.
This commit is contained in:
Aeon
2026-02-17 23:33:13 +01:00
parent d5df30718b
commit 3850a71579
2 changed files with 4 additions and 4 deletions

View File

@@ -220,8 +220,8 @@ module.exports = (socket, app) => {
webPreferences: { nodeIntegration: true, contextIsolation: false },
};
}
if (options.isRunningBlazor && !options.webPreferences.preload) {
options.webPreferences.preload = path.join(__dirname, "..", "scripts", "blazor-preload.js");
if (options.isRunningBlazor) {
options.webPreferences["preload"] = path.join(__dirname, "..", "scripts", "blazor-preload.js");
}
delete options.isRunningBlazor;
// we dont want to recreate the window when watch is ready.

View File

@@ -235,8 +235,8 @@ export = (socket: Socket, app: Electron.App) => {
};
}
if (options.isRunningBlazor && !options.webPreferences.preload) {
options.webPreferences.preload = path.join(
if (options.isRunningBlazor) {
options.webPreferences["preload"] = path.join(
__dirname,
"..",
"scripts",