miijs 1.6.8 → 1.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1113,7 +1113,11 @@ module.exports={
|
|
|
1113
1113
|
qrCode = jsQR(imageData.data, imageData.width, imageData.height).binaryData;
|
|
1114
1114
|
}
|
|
1115
1115
|
else{
|
|
1116
|
-
|
|
1116
|
+
var d=binOrPath.match(/(0|1){1,8}/g);
|
|
1117
|
+
qrCode=[];
|
|
1118
|
+
d.forEach(byte=>{
|
|
1119
|
+
qrCode.push(parseInt(byte,2));
|
|
1120
|
+
});
|
|
1117
1121
|
}
|
|
1118
1122
|
if (qrCode) {
|
|
1119
1123
|
var data = decodeAesCcm(new Uint8Array(qrCode));
|