From 865930fc3b879e90944f536d75bc86e7f6e0e602 Mon Sep 17 00:00:00 2001 From: alexandercerutti Date: Wed, 22 Aug 2018 14:49:14 +0200 Subject: [PATCH] Added barcode backward support canceling in __barcodeChooseBackward --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index c57face..d83ab7d 100644 --- a/index.js +++ b/index.js @@ -477,6 +477,11 @@ class Pass { */ __barcodeChooseBackward(format) { + if (format === null) { + this.props["barcode"] = undefined; + return this; + } + if (typeof format !== "string") { return this; }