Adding absoluteUrl handling to polyfills
This commit is contained in:
1 parent
d926ba3e06
commit
42d7ed3134
2 files changed
+12
-1
No files matched your search
@@ -1,10 +1,11 @@
|
||||
import { $ } from 'meteor/jquery';
|
||||
import { absoluteUrl } from './lib/absoluteUrl';
|
||||
|
||||
/* 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_polyfill/public/js/${fileName}`;
|
||||
const src = absoluteUrl(`/packages/ohif_polyfill/public/js/${fileName}`);
|
||||
document.write(`<script src="${src}"><\/script>`);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user