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([
|
||||
['electron', electron],
|
||||
['electron/common', electron],
|
||||
['electron/renderer', electron],
|
||||
['events', events],
|
||||
['timers', require('timers')],
|
||||
['url', require('url')]
|
||||
|
|
Loading…
Reference in a new issue