appease linter gods
This commit is contained in:
parent
43e118fe45
commit
b58ceae69c
1 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue