HakamRaza / Malaysia-MyKad-Reader-Webserver

Extract MyKad / MyKid using suitable card reader through OpenSC and Microsoft USBCCID smartcard driver.
MIT License
1 stars 2 forks source link

invalid variables #1

Open hafwan opened 4 months ago

hafwan commented 4 months ago

Good day. This is Hafiz. I have forked and ran the code, but there was an error of variable not available for datalineand datalines[] in the utils/mykid.js code. The system showed error;

ReferenceError: dataline is not defined
    at convertMyKidData (C:\xampp\htdocs\Malaysia-MyKad-Reader-Webserver\utils\mykid.js:83:39)
    at C:\xampp\htdocs\Malaysia-MyKad-Reader-Webserver\utils\mykid.js:48:32
    at ChildProcess.exithandler (node:child_process:414:7)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5)

I have since updated the code to use the variables infoStrand rowsStr[] just like mykad.js. Just wanna let you know about it, in case you have already fixed it please ignore this issue.

HakamRaza commented 4 months ago

Hi @hafwan, actually I never tested this for mykid as I don't have any sample card when I developed this. Would be great if you can make a PR for this. Thank you. 😁