Files
ohif-viewer/Packages/ohif-core/client/ie.js
T

13 lines
395 B
JavaScript

import { Meteor } from 'meteor/meteor';
import writeScript from './lib/writeScript';
// Check if browser is IE and add the polyfill scripts
if (navigator && /MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
Meteor.startup(() => {
window.onload = () => {
// Fix SVG+USE issues by calling the SVG polyfill
writeScript('svgxuse.min.js');
};
});
}