adapting link in PDF document

This commit is contained in:
Frank Knoll
2024-07-18 09:08:30 +02:00
parent 995d78e73b
commit d6580912c8

View File

@@ -10,7 +10,7 @@ class PdfCreator {
PdfCreator.#getPageHeading(heading), PdfCreator.#getPageHeading(heading),
...PdfCreator.#getWorstDrugsSection(symptom, valueName), ...PdfCreator.#getWorstDrugsSection(symptom, valueName),
...PdfCreator.#getStrongestSymptomsSection(vaccine), ...PdfCreator.#getStrongestSymptomsSection(vaccine),
PdfCreator.#link2Origin() PdfCreator.#link2Origin(heading)
] ]
}; };
} }
@@ -115,13 +115,13 @@ class PdfCreator {
}; };
} }
static #link2Origin() { static #link2Origin(text) {
return { return {
text: text:
[ [
'Origin: ', 'Origin: ',
{ {
text: window.location.href, text: text,
color: 'blue', color: 'blue',
decoration: 'underline', decoration: 'underline',
link: window.location.href link: window.location.href