adjust URL polyfill detection

This commit is contained in:
guybedford 2015-06-09 13:33:47 +02:00
parent 927ac64ecc
commit f1b0ac39c1

View File

@ -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');