fix: expose electron/common and electron/renderer modules in sandboxed preloads (#23857)
This commit is contained in:
parent
634ab45095
commit
066b8c5ab3
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ const electron = require('electron');
|
||||||
|
|
||||||
const loadedModules = new Map([
|
const loadedModules = new Map([
|
||||||
['electron', electron],
|
['electron', electron],
|
||||||
|
['electron/common', electron],
|
||||||
|
['electron/renderer', electron],
|
||||||
['events', events],
|
['events', events],
|
||||||
['timers', require('timers')],
|
['timers', require('timers')],
|
||||||
['url', require('url')]
|
['url', require('url')]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue