refactor: use separate ipc-renderer-internal / ipc-main-internal APIs for Electron internals (#13940)
This commit is contained in:
parent
f7122610cc
commit
b50f86ef43
49 changed files with 322 additions and 133 deletions
|
@ -264,7 +264,7 @@ const logSecurityWarnings = function (webPreferences, nodeIntegration) {
|
|||
}
|
||||
|
||||
const getWebPreferences = function () {
|
||||
const { ipcRenderer } = require('electron')
|
||||
const ipcRenderer = require('@electron/internal/renderer/ipc-renderer-internal')
|
||||
const errorUtils = require('@electron/internal/common/error-utils')
|
||||
|
||||
const [ error, result ] = ipcRenderer.sendSync('ELECTRON_BROWSER_GET_LAST_WEB_PREFERENCES')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue