blob: 128ebbf39bf5afbaef4f3f0a7911530e92bb4f70 [file] [log] [blame]
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;