Fetch fresh calibration on every print

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-05 14:08:11 +03:30
parent 9f38a02797
commit 13135b5999
4 changed files with 76 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
function printOrder(id) {
// Open the print page in a new window/tab
const win = window.open(`/print-page/${id}/`, '_blank');
// Cache-bust so a second print of the same order is not a stale HTML document
const win = window.open(`/print-page/${id}/?t=${Date.now()}`, '_blank');
if (win) {
win.focus();
} else {