@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 462 B
JavaScript
import {Logger}from'@scandit/web-datacapture-core';function d(t,n){if(!(t.scanIntention==="smart"||t.scanIntention==="smartSelection"))return t;if(!(n!=null&&n.simdSupport)||!(n!=null&&n.threadsSupport)){let e=t.scanIntention;t.scanIntention="manual",Logger.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: ${e}`);}return t}export{d as a};