mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: emit the document-start and document-end events in a sandboxed renderer (#20992)
This commit is contained in:
@@ -94,6 +94,8 @@ Object.defineProperty(preloadProcess, 'noDeprecation', {
|
||||
|
||||
process.on('loaded', () => preloadProcess.emit('loaded'))
|
||||
process.on('exit', () => preloadProcess.emit('exit'))
|
||||
process.on('document-start', () => preloadProcess.emit('document-start'))
|
||||
process.on('document-end', () => preloadProcess.emit('document-end'))
|
||||
|
||||
// This is the `require` function that will be visible to the preload script
|
||||
function preloadRequire (module) {
|
||||
|
||||
Reference in New Issue
Block a user