Files
open-wc/packages/polyfills-loader/test-node/snapshots/create-polyfills-loader/minified.js
2020-10-25 08:46:32 +01:00

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()}();