mirror of
https://github.com/wassname/talk.git
synced 2026-08-04 13:23:35 +08:00
fix: removed crossorigin attribute on custom css tags (#2919)
Co-authored-by: Kim Gardner <kgardnr@gmail.com>
This commit is contained in:
co-authored by
Kim Gardner
parent
7fc0e2e489
commit
8966a8201b
@@ -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 %}
|
||||
|
||||
@@ -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 = "") %}
|
||||
|
||||
Reference in New Issue
Block a user