Skip to content

Commit 3850a71

Browse files
committed
Revert "Add check for existing preload script path before overriding"
This reverts commit 497e6aa.
1 parent d5df307 commit 3850a71

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/ElectronNET.Host/api/browserWindows.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ElectronNET.Host/api/browserWindows.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ export = (socket: Socket, app: Electron.App) => {
235235
};
236236
}
237237

238-
if (options.isRunningBlazor && !options.webPreferences.preload) {
239-
options.webPreferences.preload = path.join(
238+
if (options.isRunningBlazor) {
239+
options.webPreferences["preload"] = path.join(
240240
__dirname,
241241
"..",
242242
"scripts",

0 commit comments

Comments
 (0)