diff --git a/dist/infragram.js b/dist/infragram.js index 8b385da4..ba098c9e 100644 --- a/dist/infragram.js +++ b/dist/infragram.js @@ -92,6 +92,8 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i 2: [function (require, module, exports) { window.Infragram = function Infragram(options) { options = options || {}; + options.version = options.version || 1; // for old instances where it hasn't been explicitly set + options.uploader = options.uploader || false; options.processor = options.processor || 'javascript'; options.camera = require('./io/camera')(options); @@ -131,7 +133,7 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i if (image) options.run(options.mode); options.camera.getSnapshot(); //if (options.colorized) return options.colorize(); }, interval); - }; // TODO: this doesn't work; it just downloads the unmodified image. + }; // TODO: this doesn't work; it just downloads the unmodified image. // probably a timing issue? @@ -420,7 +422,7 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i var webRtcOptions = options.webRtcOptions || { "audio": false, "video": true, - // the element (by id) you wish to use for + // the element (by id) you wish to use for // displaying the stream from a camera el: "webcam", extern: null, @@ -429,8 +431,8 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i // container width: 640, height: 480, - // the recommended mode to be used is - // "callback " where a callback is executed + // the recommended mode to be used is + // "callback " where a callback is executed // once data is available mode: "callback", // a debugger callback is available if needed @@ -504,7 +506,7 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i function getSnapshot() { var video; // If the current context is WebRTC/getUserMedia (something // passed back from the shim to avoid doing further feature - // detection), we handle getting video/images for our canvas + // detection), we handle getting video/images for our canvas // from our HTML5