init
This commit is contained in:
9
platform/core/src/ie.js
Normal file
9
platform/core/src/ie.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import writeScript from './lib/writeScript';
|
||||
|
||||
// Check if browser is IE and add the polyfill scripts
|
||||
if (navigator && /MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
|
||||
window.onload = () => {
|
||||
// Fix SVG+USE issues by calling the SVG polyfill
|
||||
writeScript('svgxuse.min.js');
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user