UNPKG

simple-image-cdn

Version:
3 lines (2 loc) 554 B
function n(){return(n=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n}).apply(this,arguments)}var t={w:640,h:640,fit:"cover"};export default function(r,e){void 0===e&&(e={});try{return"https://images.weserv.nl/?url="+window.encodeURIComponent(window.decodeURIComponent(r))+function(r){var e="";return Object.entries(n({},t,r)).forEach(function(n){e=e+"&"+n[0]+"="+n[1]}),e}(e)}catch(n){return null}} //# sourceMappingURL=index.module.js.map