Node.js based forum software built for the modern web
fix: crossorigin not showing up on manifest link tag
Barış Soner Uşaklı0faa493745e0
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.jsindex 33cc8a6323..489bece7d6 100644--- a/public/src/modules/helpers.js+++ b/public/src/modules/helpers.js@@ -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) {