fix: expose electron/common and electron/renderer modules in sandboxed preloads (#23857)

This commit is contained in:
Samuel Attard 2020-06-01 17:37:02 -07:00 committed by GitHub
parent 634ab45095
commit 066b8c5ab3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')]