mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-08 17:56:51 +00:00
Revert "Add check for existing preload script path before overriding"
This reverts commit 497e6aa423.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user