mirror of
https://github.com/systemjs/systemjs.git
synced 2026-02-01 15:59:54 +00:00
adjust URL polyfill detection
This commit is contained in:
parent
927ac64ecc
commit
f1b0ac39c1
@ -1,7 +1,7 @@
|
||||
}
|
||||
|
||||
// auto-load Promise and URL polyfills if needed in the browser
|
||||
if (typeof Promise === 'undefined' || typeof URL !== 'function') {
|
||||
if (typeof Promise === 'undefined' || (typeof URL !== 'function' && typeof URLPollyfill !== 'function')) {
|
||||
// document.write
|
||||
if (typeof document !== 'undefined') {
|
||||
var scripts = document.getElementsByTagName('script');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user