almost close to print

This commit is contained in:
2025-09-24 22:04:34 +03:00
parent 198563aaba
commit 854b6980bc
3 changed files with 62 additions and 264 deletions

View File

@@ -860,11 +860,12 @@ async function updatePrintedStatus(orderId) {
}
// PDF generation handler
// Helper to get extension ID injected by content script
// Helper to get extension ID injected by content script, or fallback to hardcoded value
function getInjectedExtensionId() {
const el = document.getElementById('chrome-extension-id');
if (el) return el.getAttribute('data-extension-id');
return null;
// Fallback to hardcoded extension ID if not injected
return 'cifcoidplhgclhcnlcgdkjbaoempjmdl';
}
function addPDFGenerationHandler() {