mirror of
https://github.com/alex-s168/website.git
synced 2025-09-10 01:05:07 +02:00
some improvements
This commit is contained in:
@@ -42,6 +42,10 @@
|
||||
function gotoMinPdf() {
|
||||
window.location.href = window.location.href.replace(/\.\w+.html/g, '.min.pdf');
|
||||
}
|
||||
|
||||
window.addEventListener('beforeprint', (event) => {
|
||||
gotoMinPdf();
|
||||
});
|
||||
")
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user