Add alt text and credits to pass
This commit is contained in:
parent
c106be369f
commit
1eb6bea1a6
|
@ -19,6 +19,7 @@ interface QrCode {
|
|||
message: string;
|
||||
format: QrFormat;
|
||||
messageEncoding: Encoding;
|
||||
altText: string;
|
||||
}
|
||||
|
||||
interface SignData {
|
||||
|
@ -83,6 +84,7 @@ export class PassData {
|
|||
message: payload.rawData,
|
||||
format: QrFormat.PKBarcodeFormatQR,
|
||||
messageEncoding: Encoding.utf8,
|
||||
altText: 'SCAN TO VERIFY',
|
||||
}
|
||||
|
||||
// Create pass data
|
||||
|
|
|
@ -339,6 +339,14 @@ export class Payload {
|
|||
throw new Error('certificateType');
|
||||
}
|
||||
|
||||
data.backFields.push(...[
|
||||
{
|
||||
key: "credits",
|
||||
label: "",
|
||||
value: "Created with <a href='https://covidpass.marvinsextro.de'>CovidPass</a>"
|
||||
}
|
||||
]);
|
||||
|
||||
return data;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue