Skip to content

Commit 9f564c9

Browse files
Merge PR mebjas#819 from upstream
2 parents 0ba8aec + 299a38b commit 9f564c9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/core.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ export interface QrcodeResult {
175175

176176
/** Data class for QR code result used for debugging. */
177177
debugData?: QrcodeResultDebugData;
178+
179+
/** Contains the rawBytes without QrCode header/footer. */
180+
rawBytes?: Uint8Array;
178181
}
179182

180183
/**

src/zxing-html5-qrcode-decoder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ export class ZXingHtml5QrcodeDecoder implements QrcodeDecoderAsync {
112112
text: result.text,
113113
format: QrcodeResultFormat.create(
114114
this.toHtml5QrcodeSupportedFormats(result.format)),
115-
debugData: this.createDebugData()
115+
debugData: this.createDebugData(),
116+
rawBytes: result.resultMetadata.get(2)[0]
116117
};
117118
}
118119

0 commit comments

Comments
 (0)