refactor: add emitCustomEvent() helper (#17960)
This commit is contained in:
parent
aebad6fd21
commit
6f5c850d60
5 changed files with 35 additions and 48 deletions
|
@ -44,7 +44,7 @@ if (process.platform === 'win32') {
|
|||
// Don't quit on fatal error.
|
||||
process.on('uncaughtException', function (error) {
|
||||
// Do nothing if the user has a custom uncaught exception handler.
|
||||
if (process.listeners('uncaughtException').length > 1) {
|
||||
if (process.listenerCount('uncaughtException') > 1) {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -159,12 +159,6 @@ require('@electron/internal/browser/chrome-devtools')
|
|||
// Load the chrome extension support.
|
||||
require('@electron/internal/browser/chrome-extension')
|
||||
|
||||
const features = process.electronBinding('features')
|
||||
if (features.isDesktopCapturerEnabled()) {
|
||||
// Load internal desktop-capturer module.
|
||||
require('@electron/internal/browser/desktop-capturer')
|
||||
}
|
||||
|
||||
// Load protocol module to ensure it is populated on app ready
|
||||
require('@electron/internal/browser/api/protocol')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue