refactor: remove private webContents.getId() API (#13674)
This commit is contained in:
parent
a88cdf2d1f
commit
305e3aad40
12 changed files with 14 additions and 45 deletions
|
@ -36,15 +36,9 @@ const loadedModules = new Map([
|
|||
])
|
||||
|
||||
const {
|
||||
preloadSrc, preloadError, webContentsId, platform, execPath, env
|
||||
preloadSrc, preloadError, platform, execPath, env
|
||||
} = electron.ipcRenderer.sendSync('ELECTRON_BROWSER_SANDBOX_LOAD', preloadPath)
|
||||
|
||||
Object.defineProperty(process, 'webContentsId', {
|
||||
configurable: false,
|
||||
writable: false,
|
||||
value: webContentsId
|
||||
})
|
||||
|
||||
require('../renderer/web-frame-init')()
|
||||
|
||||
// Pass different process object to the preload script(which should not have
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue