Skip to content

Commit

Permalink
Fix standard linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Jan 24, 2017
1 parent 08b8ebd commit f364298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/static/main.js
Expand Up @@ -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
Expand Down

0 comments on commit f364298

Please sign in to comment.