added type to registration to make a distinction between photo and apple wallet pass

This commit is contained in:
Billy Lo 2021-09-09 22:42:35 -04:00
parent 6303637f9a
commit 519d6c6995
2 changed files with 3 additions and 1 deletions

View File

@ -92,6 +92,7 @@ export class PassData {
delete clonedReceipt.name;
delete clonedReceipt.dateOfBirth;
clonedReceipt["serialNumber"] = payload.serialNumber;
clonedReceipt["type"] = 'applewallet';
let requestOptions = {
method: 'POST', // *GET, POST, PUT, DELETE, etc.

View File

@ -48,6 +48,7 @@ export class Photo {
delete clonedReceipt.name;
delete clonedReceipt.dateOfBirth;
clonedReceipt["serialNumber"] = payload.serialNumber;
clonedReceipt["type"] = 'photo';
let requestOptions = {
method: 'POST', // *GET, POST, PUT, DELETE, etc.
@ -103,7 +104,7 @@ export class Photo {
const codeWriter = new BrowserQRCodeSvgWriter();
const svg = codeWriter.write(qrCode.message,200,200);
svg.setAttribute('style','background-color: white; display:block; marginLeft: auto; marginRight: auto');
svg.setAttribute('style','background-color: white');
document.getElementById('qrcode').appendChild(svg);
const blobPromise = toBlob(body);