Browser Detection
A utility for detecting browser support for Braintree libs.
Example
const browserDetection = ; browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;browserDetection;
To reduce build sizes, you can require just the modules you need:
const isAndroid = ;const isChromeOS = ;const isChrome = ;const isEdge = ;const isFirefox = ;const isIe = ;const isIe9 = ;const isIe10 = ;const isIe11 = ;const isIos = ;const isIosFirefox = ;const isIosSafari = ;const isIosWebview = ;const isIosUIWebview = ;const isIosWKWebview = ;const isMobileFirefox = ;const isSamsungBrowser = ;const suportsPaymentRequestApi = ;const supportsPopups = ;
Testing
npm test