appease linter gods

This commit is contained in:
Shelley Vohr 2017-10-24 12:28:15 -04:00
parent 43e118fe45
commit b58ceae69c
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -3,7 +3,10 @@ const {ipcRenderer, nativeImage} = require('electron')
const includes = [].includes
let currentId = 0
const incrementId = () => currentId += 1
const incrementId = () => {
currentId += 1
return currentId
}
// |options.type| can not be empty and has to include 'window' or 'screen'.
function isValid (options) {
@ -27,7 +30,7 @@ exports.getSources = function (options, callback) {
ipcRenderer.send('ELECTRON_BROWSER_DESKTOP_CAPTURER_GET_SOURCES', captureWindow, captureScreen, options.thumbnailSize, id)
return ipcRenderer.once(`ELECTRON_RENDERER_DESKTOP_CAPTURER_RESULT_${id}`, (event, sources) => {
callback(null, (() => {
results = []
const results = []
sources.forEach(source => {
results.push({
id: source.id,