-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* global module, chrome */ | ||
/* global chrome */ | ||
|
||
// getScreenMedia helper by @HenrikJoreteg | ||
const getUserMedia = function(constraints, callback) { | ||
|
@@ -23,7 +23,13 @@ const getUserMedia = function(constraints, callback) { | |
// cache for constraints and callback | ||
const cache = {} | ||
|
||
module.exports = function(mode, constraints, cb) { | ||
/** | ||
* | ||
* @param mode | ||
Check warning on line 28 in src/utils/webrtc/simplewebrtc/getscreenmedia.js GitHub Actions / eslint
Check warning on line 28 in src/utils/webrtc/simplewebrtc/getscreenmedia.js GitHub Actions / eslint
|
||
* @param constraints | ||
Check warning on line 29 in src/utils/webrtc/simplewebrtc/getscreenmedia.js GitHub Actions / eslint
Check warning on line 29 in src/utils/webrtc/simplewebrtc/getscreenmedia.js GitHub Actions / eslint
|
||
* @param cb | ||
Check warning on line 30 in src/utils/webrtc/simplewebrtc/getscreenmedia.js GitHub Actions / eslint
Check warning on line 30 in src/utils/webrtc/simplewebrtc/getscreenmedia.js GitHub Actions / eslint
|
||
*/ | ||
export default function(mode, constraints, cb) { | ||
const hasConstraints = arguments.length === 3 | ||
const callback = hasConstraints ? cb : constraints | ||
let error | ||
|