mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-17 13:31:12 +00:00
feat: clear
This commit is contained in:
parent
3cbe187292
commit
ca1993533e
1 changed files with 3 additions and 0 deletions
|
|
@ -88,6 +88,7 @@
|
|||
|
||||
const generatePdf = async () => {
|
||||
const template = (await import('$lib/assets/pdf/drawing.svg?raw')).default;
|
||||
|
||||
const svg = template
|
||||
.replace('${APPLICATION}', login.applicationId.toString())
|
||||
.replace('${CODE}', login.password);
|
||||
|
|
@ -100,6 +101,8 @@
|
|||
await doc.svg(element);
|
||||
|
||||
doc.save('PRIHLASOVACI_UDAJE_' + login.applicationId.toString());
|
||||
|
||||
element.innerHTML = '';
|
||||
};
|
||||
|
||||
const close = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue