Skip to content

Commit 802b1ac

Browse files
authored
Update README.md
1 parent 07a0bc9 commit 802b1ac

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,3 +254,16 @@ If you still use this version you will need to invoke it like this:
254254
```
255255
dotnet electronize ...
256256
```
257+
258+
## Node Integration
259+
Electron.NET requires Node Integration to be enabled for IPC to function. If you are not using the IPC functionality you can disable Node Integration like so:
260+
261+
```csharp
262+
WebPreferences wp = new WebPreferences();
263+
wp.NodeIntegration = false;
264+
BrowserWindowOptions browserWindowOptions = new BrowserWindowOptions
265+
{
266+
WebPreferences = wp
267+
}
268+
269+
```

0 commit comments

Comments
 (0)