src/media-capture.js
Function cameraCaptureControl
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports.cameraCaptureControl = function cameraCaptureControl (
dom,
store,
getImageDoc,
doneCallback
Function cameraOLD
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
UI.media.cameraOLD = function (context, _gotBlob) {
function takeSnapshot () {
var dom = context.dom
var img = dom.createElement('img')
var ctx