Creating ohif:compatibility package to enable IE11 support
This commit is contained in:
1 parent
66bc4e2105
commit
1f8eda7b82
13 files changed
+1116
-20
No files matched your search
@@ -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';
|
||||
Reference in new issue
Block a user