Fix standard linting error
This commit is contained in:
parent
56a8eb3a94
commit
330ac5f266
1 changed files with 3 additions and 1 deletions
|
@ -257,7 +257,9 @@ ipcMain.on('try-emit-web-contents-event', (event, id, eventName) => {
|
|||
const listenerCountBefore = contents.listenerCount(eventName)
|
||||
|
||||
try {
|
||||
console.warn = (message) => warningMessage = message
|
||||
console.warn = (message) => {
|
||||
warningMessage = message
|
||||
}
|
||||
contents.emit(eventName, {sender: contents})
|
||||
} finally {
|
||||
console.warn = consoleWarn
|
||||
|
|
Loading…
Reference in a new issue