Skip to content

Commit

Permalink
Merge pull request ionic-team#663 from feedhenry-staff/barcode_config
Browse files Browse the repository at this point in the history
Enable options for barcode scanner
  • Loading branch information
pbernasconi committed Apr 1, 2015
2 parents dcf534c + eeddf44 commit e4e115d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/barcodeScanner.js
Original file line number Diff line number Diff line change
@@ -6,14 +6,14 @@ angular.module('ngCordova.plugins.barcodeScanner', [])
.factory('$cordovaBarcodeScanner', ['$q', function ($q) {

return {
scan: function () {
scan: function (config) {
var q = $q.defer();

cordova.plugins.barcodeScanner.scan(function (result) {
q.resolve(result);
}, function (err) {
q.reject(err);
});
}, config);

return q.promise;
},

0 comments on commit e4e115d

Please sign in to comment.