update reviewed items
This commit is contained in:
parent
98df153750
commit
7593bec687
2 changed files with 6 additions and 11 deletions
|
@ -8,10 +8,10 @@ const incrementId = () => {
|
|||
return currentId
|
||||
}
|
||||
|
||||
// |options.type| can not be empty and has to include 'window' or 'screen'.
|
||||
// |options.types| can't be empty and must be an array
|
||||
function isValid (options) {
|
||||
const types = (options != null) ? options.types : undefined
|
||||
return (types != null) && Array.isArray(options.types)
|
||||
const types = options ? options.types : undefined
|
||||
return Array.isArray(types)
|
||||
}
|
||||
|
||||
exports.getSources = function (options, callback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue