adapting link in PDF document
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user