Creating ohif:compatibility package to enable IE11 support

This commit is contained in:
Bruno Alves de Faria committed 2017-04-17 16:50:10 -03:00
1 parent 66bc4e2105
commit 1f8eda7b82
13 files changed
+1116 -20

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
/* jshint -W060 */
// 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}`;
document.write(`<script src="${src}"><\/script>`);
};
writeScript('svgxuse.min.js');
writeScript('typedarray.js');
}
@@ -0,0 +1 @@
import './ie';