@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 479 B
JavaScript
import"../ScanIntention.js";import{Logger as e}from"@scandit/web-datacapture-core";function t(t,n){if(t.scanIntention!==`smart`)return t;if(!(n!=null&&n.simdSupport)||!(n!=null&&n.threadsSupport)){let r=t.scanIntention;t.scanIntention=`manual`,e.warn(`Force scanIntention to manual due to device limitations (threads: ${n==null?void 0:n.threadsSupport}, SIMD: ${n==null?void 0:n.simdSupport}). Original scanIntention: ${r}`)}return t}export{t as ensureSmartScanIntentionSupport};