Skip to content
Snippets Groups Projects
Commit 56a7bed2 authored by Damyan Mitev's avatar Damyan Mitev :beach:
Browse files

small fix

parent e0ebc7e2
No related branches found
No related tags found
1 merge request!75Implement validation of VCard
......@@ -418,7 +418,7 @@ function createCertificate(certData, issuerData = null) {
serialNumberView = new Uint8Array(certData.serialNumber);
} else if (certData.serialNumber instanceof Uint8Array) {
serialNumberView = certData.serialNumber;
} else if (certData.serialNumber instanceof String) {
} else if (typeof certData.serialNumber === "string") {
try {
serialNumberView = new Uint8Array(hexStringToBytes(certData.serialNumber));
} catch (ignore) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment