Skip to content

Commit

Permalink
Fixed printing barcode
Browse files Browse the repository at this point in the history
Related labibramadhan#11 Barcode Printing method was wrong
  • Loading branch information
Sigman32 authored Oct 16, 2018
1 parent 067a445 commit 0d18f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/innerprinter.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = {
},
printBarCode: function (barCodeData, symbology, width, height, textPosition) {
return new Promise(function (resolve, reject) {
cordova.exec(resolve, reject, "Printer", "printBitmap", [barCodeData, symbology, width, height, textPosition]);
cordova.exec(resolve, reject, "Printer", "printBarCode", [barCodeData, symbology, width, height, textPosition]);
});
},
printQRCode: function (qrCodeData, moduleSize, errorLevel) {
Expand Down

0 comments on commit 0d18f56

Please sign in to comment.