some improvements

This commit is contained in:
2025-07-04 23:45:54 +02:00
parent a57dafdb00
commit 1d6593dcc1
5 changed files with 57 additions and 41 deletions

View File

@@ -42,6 +42,10 @@
function gotoMinPdf() {
window.location.href = window.location.href.replace(/\.\w+.html/g, '.min.pdf');
}
window.addEventListener('beforeprint', (event) => {
gotoMinPdf();
});
")
]
}