Fetch fresh calibration on every print
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user