Browse Source

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

Co-authored-by: Samuel Attard <[email protected]>
trop[bot] 4 years ago
parent
commit
79acd3e0ef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/sandboxed_renderer/init.js

+ 2 - 0
lib/sandboxed_renderer/init.js

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