fix: removed crossorigin attribute on custom css tags (#2919)

Co-authored-by: Kim Gardner <kgardnr@gmail.com>
This commit is contained in:
Wyatt Johnson
2020-04-03 17:58:52 -04:00
committed by GitHub
co-authored by Kim Gardner
parent 7fc0e2e489
commit 8966a8201b
2 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
{% endfor %}
{% endif %}
{% if enableCustomCSS and tenant and tenant.customCSSURL %}
{{ macros.preload(tenant.customCSSURL, "style", crossorigin = true) }}
{{ macros.preload(tenant.customCSSURL, "style") }}
{% endif %}
{% if entrypoint.js %}
{% for asset in entrypoint.js %}
+2 -6
View File
@@ -1,9 +1,5 @@
{% macro preload(src, htmlAs, prefix = "", crossorigin = false) %}
{% if crossorigin %}
<link rel="preload" href="{{ prefix }}{{ src }}" as="{{ htmlAs }}" crossorigin>
{% else %}
<link rel="preload" href="{{ prefix }}{{ src }}" as="{{ htmlAs }}">
{% endif %}
{% macro preload(src, htmlAs, prefix = "") %}
<link rel="preload" href="{{ prefix }}{{ src }}" as="{{ htmlAs }}">
{% endmacro %}
{% macro css(src, integrity = "", prefix = "") %}