image-capture
Advanced tools
Comparing version
@@ -113,3 +113,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
value: function setOptions() { | ||
var photoSettings = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var photoSettings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -131,3 +131,3 @@ return new Promise(function (resolve, reject) { | ||
value: function takePhoto() { | ||
var photoSettings = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; | ||
var photoSettings = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
@@ -134,0 +134,0 @@ var self = this; |
{ | ||
"name": "image-capture", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "MediaStream ImageCapture polyfill: takePhoto(), grabFrame() and more", | ||
@@ -5,0 +5,0 @@ "main": "lib/imagecapture.js", |
@@ -12,3 +12,3 @@ # ImageCapture polyfill | ||
[The demo](https://github.com/dandv/imagecapture) currently shows grabFrame() and takePhoto(). | ||
[The demo](https://dandv.github.io/imagecapture) currently shows grabFrame() and takePhoto(). | ||
@@ -15,0 +15,0 @@ # Quick start |
Sorry, the diff of this file is not supported yet
36214
-70.16%8
-80.95%673
-38.31%