Fix standard linting error

This commit is contained in:
Kevin Sawicki 2017-01-24 15:09:41 -08:00
parent 56a8eb3a94
commit 330ac5f266

View file

@ -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