Removing unused polyfills
This commit is contained in:
1 parent
2c0fbc0158
commit
d926ba3e06
4 files changed
+1
-9
No files matched your search
@@ -4,13 +4,12 @@ import { $ } from 'meteor/jquery';
|
||||
// Check if browser is IE and add the polyfill scripts
|
||||
if (navigator && /MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
|
||||
const writeScript = fileName => {
|
||||
const src = `/packages/ohif_compatibility/public/js/${fileName}`;
|
||||
const src = `/packages/ohif_polyfill/public/js/${fileName}`;
|
||||
document.write(`<script src="${src}"><\/script>`);
|
||||
};
|
||||
|
||||
writeScript('svgxuse.min.js');
|
||||
writeScript('typedarray.min.js');
|
||||
writeScript('flexibility.min.js');
|
||||
|
||||
window.addEventListener('click', event => {
|
||||
if (!window.SVGElementInstance || !(event.target instanceof SVGElementInstance)) return;
|
||||
|
||||
Reference in new issue
Block a user