diff --git a/plugin.xml b/plugin.xml index 0d0ccfa7..2a2f3c5f 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ + version="1.0.2"> BarcodeScanner Scans Barcodes. @@ -15,6 +15,8 @@ + + diff --git a/www/barcodescanner.js b/www/barcodescanner.js index 42b587cb..a86990a2 100644 --- a/www/barcodescanner.js +++ b/www/barcodescanner.js @@ -6,6 +6,7 @@ * Copyright (c) 2011, IBM Corporation */ + var ScannerLoader = function (require, exports, module) { var exec = require("cordova/exec"); @@ -85,3 +86,12 @@ var barcodeScanner = new BarcodeScanner(); module.exports = barcodeScanner; + } + + ScannerLoader(require, exports, module); + + cordova.define("cordova/plugin/BarcodeScanner", ScannerLoader); + + + +