UNPKG

iframely

Version:

oEmbed/2 gateway endpoint. Get embed data for various http links through one self-hosted API

15 lines (13 loc) 353 B
export default { getLink: function(oembed) { if (oembed.icon_url) { return { href: oembed.icon_url, type: CONFIG.T.image, rel: [CONFIG.R.icon, CONFIG.R.oembed], width: oembed.icon_width, height: oembed.icon_height }; } } };