|
|
|
@ -70,10 +70,10 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function buildLinkTag(tag) {
|
|
|
|
|
const attributes = ['link', 'rel', 'as', 'type', 'href', 'sizes', 'title'];
|
|
|
|
|
const [link, rel, as, type, href, sizes, title] = attributes.map(attr => (tag[attr] ? `${attr}="${tag[attr]}" ` : ''));
|
|
|
|
|
const attributes = ['link', 'rel', 'as', 'type', 'href', 'sizes', 'title', 'crossorigin'];
|
|
|
|
|
const [link, rel, as, type, href, sizes, title, crossorigin] = attributes.map(attr => (tag[attr] ? `${attr}="${tag[attr]}" ` : ''));
|
|
|
|
|
|
|
|
|
|
return '<link ' + link + rel + as + type + sizes + title + href + '/>\n\t';
|
|
|
|
|
return '<link ' + link + rel + as + type + sizes + title + href + crossorigin + '/>\n\t';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function stringify(obj) {
|
|
|
|
|