mirror of
https://github.com/electron/electron.git
synced 2026-01-27 00:09:09 -05:00
refactor: add prefer-const to .eslintrc + fix errors (#14880)
This commit is contained in:
committed by
Samuel Attard
parent
07161a8452
commit
3ad3ade828
@@ -5,7 +5,7 @@ const binding = process.atomBinding('crash_reporter')
|
||||
|
||||
const sendSync = function (channel, ...args) {
|
||||
if (process.type === 'browser') {
|
||||
let event = {}
|
||||
const event = {}
|
||||
electron.ipcMain.emit(channel, event, ...args)
|
||||
return event.returnValue
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user