1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| (function(){
| function BarcodeScanner() {};
|
| BarcodeScanner.prototype.scan = function(mode,win,err){
| cordova.exec(win, err, "BarcodeScanner", "scan", [mode]);
| };
|
|
| if(!window.plugins) {
| window.plugins = {};
| }
| if (!window.plugins.barcodeScanner) {
| window.plugins.barcodeScanner = new BarcodeScanner();
| }
| })();
|
|