Fix incorrect upperlower-casing of zbar.js file (pt1 of 2)
This commit is contained in:
parent
1137f45248
commit
4b37aaeec9
23
www/zBar.js
23
www/zBar.js
@ -1,23 +0,0 @@
|
|||||||
var argscheck = require('cordova/argscheck'),
|
|
||||||
exec = require('cordova/exec');
|
|
||||||
|
|
||||||
function ZBar () {};
|
|
||||||
|
|
||||||
ZBar.prototype = {
|
|
||||||
|
|
||||||
scan: function (params, success, failure)
|
|
||||||
{
|
|
||||||
argscheck.checkArgs('*fF', 'CsZBar.scan', arguments);
|
|
||||||
|
|
||||||
params = params || {};
|
|
||||||
if(params.text_title === undefined) params.text_title = "Scan QR Code";
|
|
||||||
if(params.text_instructions === undefined) params.text_instructions = "Please point your camera at the QR code.";
|
|
||||||
if(params.camera != "front") params.camera = "back";
|
|
||||||
if(params.flash != "on" && params.flash != "off") params.flash = "auto";
|
|
||||||
|
|
||||||
exec(success, failure, 'CsZBar', 'scan', [params]);
|
|
||||||
},
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = new ZBar;
|
|
Loading…
Reference in New Issue
Block a user