Skip to content

Commit

Permalink
Merge pull request #3 from taoru/patch-1
Browse files Browse the repository at this point in the history
Fix printBarCode invocation typo
  • Loading branch information
eusilvio authored Sep 6, 2018
2 parents ab3d17c + 2cb13f0 commit c1e57f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/innerprinter.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
exec(resolve, reject, "Printer", "printBitmap", [base64Data, width, height]);
},
printBarCode: function (barCodeData, symbology, width, height, textPosition, resolve, reject) {
exec(resolve, reject, "Printer", "printBitmap", [barCodeData, symbology, width, height, textPosition]);
exec(resolve, reject, "Printer", "printBarCode", [barCodeData, symbology, width, height, textPosition]);
},
printQRCode: function (qrCodeData, moduleSize, errorLevel, resolve, reject) {
exec(resolve, reject, "Printer", "printQRCode", [qrCodeData, moduleSize, errorLevel]);
Expand All @@ -63,4 +63,4 @@ module.exports = {
exec(function () {}, function () {}, "Printer", "printerStatusStopListener", []);
}

}
}

0 comments on commit c1e57f8

Please sign in to comment.