@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 63f13a8
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 19:30 UTC

fix: support popup-owned text nodes in print normalizer

davoodmehraban89 committed Oct 11, 2026 at 16:33 UTC 63f13a8668556024f5b24dcbd540c54f2201fd95
1 file changed +1 -1
js/print.js
+1 -1
@@ -20,7 +20,7 @@ function getInvoicePrintSpec(inv){
20 // Print-only display normalization: stored serials, API identifiers and numeric values stay unchanged.
21 function localizePrintTextNodes(root){
22 if(!root)return;
23 - const walker=document.createTreeWalker(root,NodeFilter.SHOW_TEXT);
23 + const walker=(root.ownerDocument||document).createTreeWalker(root,NodeFilter.SHOW_TEXT);
24 const latin='0123456789',arabic='٠١٢٣٤٥٦٧٨٩',persian='۰۱۲۳۴۵۶۷۸۹';
25 let node;
26 while((node=walker.nextNode())){