-
Notifications
You must be signed in to change notification settings - Fork 15.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking 5.0 change: process
is undefined when using browserWindow.loadURL(url)
#17967
Comments
breaking changes explains |
@kwonoj I believe the webPreferences are to their pre-v5 defaults in the main.js? let mainWindow = new BrowserWindow({
contextIsolation: false,
nodeIntegration: true,
webviewTag: true,
}) |
I'm on v4 currently and it is under and breaking changes are setting its default value |
Ok, SO, the actual fix is as follows let mainWindow = new BrowserWindow({
webPreferences: {
nodeIntegration: true,
},
}) Could the breaking docs be a little clearer? Like including code example like previous versions? |
* docs: add example on handling the webPrefs change Fixes #17967 * Update breaking-changes.md
* docs: add example on handling the webPrefs change Fixes electron#17967 * Update breaking-changes.md
* docs: add example on handling the webPrefs change Fixes #17967 * Update breaking-changes.md
* docs: add example on handling the webPrefs change Fixes #17967 * Update breaking-changes.md
* docs: add example on handling the webPrefs change Fixes #17967 * Update breaking-changes.md
Issue Details
Expected Behavior
process
to be defined inside browser windowActual Behavior
process
is undefined inside browser windowTo Reproduce
app.html
main.js
package.json
Screenshots
Additional Information
This is working in v^3 and v^4, but causes issues in v5. Nor have there been any depreciation warnings in v4 and nothing is referenced in breaking changes
The text was updated successfully, but these errors were encountered: