almost close to print
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user