fix: crossorigin not showing up on manifest link tag

isekai-main
Barış Soner Uşaklı 3 years ago
parent 89af00d1d5
commit 0faa493745

@ -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) {

Loading…
Cancel
Save