Files
ohif-viewer/platform/core/src/ie.js
2025-03-07 13:47:44 +07:00

10 lines
292 B
JavaScript

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');
};
}