Update README.md

This commit is contained in:
Gabe Stocco
2019-05-31 09:12:07 -07:00
committed by GitHub
parent 07a0bc9c7d
commit 802b1acf68

View File

@@ -254,3 +254,16 @@ If you still use this version you will need to invoke it like this:
```
dotnet electronize ...
```
## Node Integration
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:
```csharp
WebPreferences wp = new WebPreferences();
wp.NodeIntegration = false;
BrowserWindowOptions browserWindowOptions = new BrowserWindowOptions
{
WebPreferences = wp
}
```