mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
1 line
487 B
JavaScript
1 line
487 B
JavaScript
!function(){function e(e,n){return new Promise((function(o){var t=document.createElement("script");function r(){t.parentElement&&t.parentElement.removeChild(t),o()}t.src=e,t.onload=r,t.onerror=function(){console.error("[polyfills-loader] failed to load: "+e+" check the network tab for HTTP status."),r()},n&&(t.type=n),document.head.appendChild(t)}))}var n=[];function o(){e("/app.js","module")}"fetch"in window||n.push(e("./polyfills/fetch.js")),n.length?Promise.all(n).then(o):o()}(); |