lottie-web
Version:
After Effects plugin for exporting animations to SVG + JavaScript or canvas + JavaScript
17 lines (15 loc) • 489 B
JavaScript
const featureSupport = (function () {
var ob = {
maskType: true,
svgLumaHidden: true,
offscreenCanvas: typeof OffscreenCanvas !== 'undefined',
};
if (/MSIE 10/i.test(navigator.userAgent) || /MSIE 9/i.test(navigator.userAgent) || /rv:11.0/i.test(navigator.userAgent) || /Edge\/\d./i.test(navigator.userAgent)) {
ob.maskType = false;
}
if (/firefox/i.test(navigator.userAgent)) {
ob.svgLumaHidden = false;
}
return ob;
}());
export default featureSupport;